iamcco / coc-angular

Angular Language Service coc extension for (neo)vim
146 stars 17 forks source link

Error: Uknown import type #41

Closed redfox-mx closed 2 years ago

redfox-mx commented 3 years ago

Describe the bug Angular coc extension doesn't work. I try to enable ivy feature disabled but it either didn't work. Run yarn ngcc of npm run ngcc don't fix it

To Reproduce coc extensions:

Expected behavior Extension runs with normality ?

Screenshots image

Desktop (please complete the following information):

Log:

[Info  - 12:01:46 AM] Angular language server process ID: 11624
[Info  - 12:01:46 AM] Using typescript/lib/tsserverlibrary v4.1.6 from /home/redfox/.config/coc/extensions/node_modules/coc-a
[Info  - 12:01:46 AM] Using @angular/language-service/bundles/ivy v11.2.7 from /home/redfox/.config/coc/extensions/node_modul
[Info  - 12:01:46 AM] Logging is turned off. To enable, run command 'Open Angular server log'.
[Error  - 12:01:58 AM] Unknown compiler option 'noImplicitOverride'.
Unknown compiler option 'noPropertyAccessFromIndexSignature'.
[Error  - 12:01:58 AM] Failed to run ngcc for /home/redfox/angular-heroku-template/tsconfig.json:
  │ Failed to resolve ngcc from /home/redfox/angular-heroku-template
  │ Language service will remain disabled.
[Info  - 12:01:58 AM] Enabling Ivy language service for /home/redfox/angular-heroku-template/tsconfig.json.
/home/redfox/.config/coc/extensions/node_modules/coc-angular/node_modules/@angular/language-service/bundles/ivy.js:23561
  │ │ │ │ │ │ │ throw new Error(`Unknown import type?`);
Error: Unknown import type?
  │ at reflectTypeEntityToDeclaration (/home/redfox/.config/coc/extensions/node_modules/coc-angular/node_modules/@angular/lan
  │ at /home/redfox/.config/coc/extensions/node_modules/coc-angular/node_modules/@angular/language-service/bundles/ivy.js:238
  │ at Array.map (<anonymous>)
  │ at extractReferencesFromType (/home/redfox/.config/coc/extensions/node_modules/coc-angular/node_modules/@angular/language
  │ at DtsMetadataReader.getNgModuleMetadata (/home/redfox/.config/coc/extensions/node_modules/coc-angular/node_modules/@angu
  │ at MetadataDtsModuleScopeResolver.resolve (/home/redfox/.config/coc/extensions/node_modules/coc-angular/node_modules/@ang
  │ at LocalModuleScopeRegistry.getExportedScope (/home/redfox/.config/coc/extensions/node_modules/coc-angular/node_modules/@
  │ at LocalModuleScopeRegistry.getScopeOfModuleReference (/home/redfox/.config/coc/extensions/node_modules/coc-angular/node_
  │ at LocalModuleScopeRegistry.getScopeOfModule (/home/redfox/.config/coc/extensions/node_modules/coc-angular/node_modules/@
  │ at NgModuleDecoratorHandler.resolve (/home/redfox/.config/coc/extensions/node_modules/coc-angular/node_modules/@angular/l
[Info  - 12:01:58 AM] Connection to server got closed. Server will restart.
iamcco commented 2 years ago

Please test with latest version

redfox-mx commented 2 years ago

thank you so much, now works! (sometimes i hate all the complexity of angular related things ¬.¬ )