Language Service reports an unknown component selector #21066
Labels
area: language-service
Issues related to Angular's VS Code language service
freq1: low
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
type: bug/fix
Milestone
I'm submitting a...
Current behavior
If a new package / lib is developed (using
ng-packagr
) and the package wasn't installed yet fromnpmjs
(doesn't exist innode_packages
) ... and the following config is used intsconfig.json
instead:then it is possible to compile the app (wrapper during the development phase of the package) as usual but VS Code shows an error message that a selector of a component (from
packagename
) is an unknown element in a template like... <component-selector></component-selector> ...
:If the package is installed (
npm install packagename
) without any changes in the code then the package is correctly recognized and there is no error message.Expected behavior
Be able to understand that the package is correctly installed and usable even on the base of the correct configuration of
"paths"
intsconfig.json
. The main point is that during development process of such a package there is nothing to install.Environment
The text was updated successfully, but these errors were encountered: