Modules not exported inline (export class MyModule) are not recognized by language service
See original GitHub issueos - Ubuntu 20.04 nodejs - 16.1.0
Steps to reproduce the behavior:
- Download problem.zip
- npm install
- Install ext. @angular/language-service for VSCode
- Open project with VSCode
latest version of extention - @angular/language-service for VSCode problem.zip - project
When using this configuration I got errors:
in src/app/dashboard/dashboard.component.html
'drawer-component' is not a known element:
1. If 'drawer-component' is an Angular component, then verify that it is part of this module.
2. If 'drawer-component' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.ngtsc(-998001)
in src/shared/drawer-component/index.ts
Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.
Is it missing an @NgModule annotation?(-996002)
Settings:
Problem:
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11 (4 by maintainers)
Top Results From Across the Web
How to export a class in a PowerShell v5 module
It doesn't work: Import-Module : The member 'ScriptsToProcess' in the module manifest is not valid: The path cannot be processed because it resolved...
Read more >16. Modules - Exploring JS
Can I use destructuring in an import statement? 16.9.5. Are named exports necessary? Why not default-export objects? 16.9.6. Can I eval() the code ......
Read more >Using ECMAScript modules (ESM) with Node.js
Learn about using ES modules in Node.js today and get a closer look at how you can migrate your codebase to make use...
Read more >export - JavaScript - MDN Web Docs
You can have multiple named exports per module but only one ... As a special case, functions and classes are exported as declarations,...
Read more >in C++ experimental module, the LAST inline variable is ...
export module MyModule ; export namespace myModule { inline int myModuleVar1 = 0; inline int ... error C2653: 'myModule': is not a class...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This will be addressed by #42184. It might miss the release this week but will definitely be in by next week.
Transferring this to angular/angular as this is fundamentally a compiler bug (we need to be smarter about detecting “exported” components).