angular: Missing metadata for @angular/common/locales

I’m submitting a…


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

The content of every [locale].metadata.json file is [null]. This seems to break the angular vscode language service, and is probably not intended.

Expected behavior

Some actual metadata perhaps? I’m not sure what the contents of these files are supposed to be, but it seems like most libraries have objects top-level in the metadata files.

Minimal reproduction of the problem with instructions

https://github.com/angular/common-builds/blob/master/locales/en-GB.metadata.json

Environment


Angular version: 5.0.0+

Browser: N/A
 
For Tooling issues: N/A

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 14
  • Comments: 24 (13 by maintainers)

Commits related to this issue

Most upvoted comments

Fixed with #20938

@vicb any way to get this fixed? There has been two patch releases since this issue was reported and I suppose this could be fixed simply, no? If you have a recommendation on how to do that, I can do a PR 😃

Same issue. I think the problem occurs because the Angular Language Service extension uses @angular/language-service@5.0.0-beta.5. the extension needs to be updated to use @angular/language-service@5.0.1

I have the same issue angular 5.0.0. and VSCode 1.17.2 Replacing [null] with [] in the [locale].metadata.json file in node_modules seems to solve it; so far everything seems to work. Modifying files in node_modules is far from ideal, but at least VS Code is working until a more permanent solution.