Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add support for latest V19-Next #2095

Closed
spock123 opened this issue Oct 25, 2024 · 10 comments
Closed

Please add support for latest V19-Next #2095

spock123 opened this issue Oct 25, 2024 · 10 comments
Labels

Comments

@spock123
Copy link

Is your feature request related to a problem? Please describe.

Latest V19 builds have now standalone:true as default.
This makes the angular language service show errors in VSCode when using the imports array in a component.:

imports is only valid on a components that is standalone

🚀 feature request

Description

Add support for standalone: true as default (ie. allow imports array)

@spock123
Copy link
Author

Image

@devversion
Copy link
Member

should be done

@188599
Copy link

188599 commented Nov 20, 2024

I'm still getting this same error, am I missing something?

Image
Image

@devversion
Copy link
Member

@188599 potentially you have a workspace with multiple Angular versions in your project? consider clicking on VSCode's Output tab right by the terminal, and then click on Angular language service. It should print the "found version"

@188599
Copy link

188599 commented Nov 20, 2024

@188599 potentially you have a workspace with multiple Angular versions in your project? consider clicking on VSCode's Output tab right by the terminal, and then click on Angular language service. It should print the "found version"

Yes, that is the case.

I'm migrating a very old Angular project and I have both the old one and the new one in the same workspace. The language service is pulling the version from the old project in this case.

Image

@devversion
Copy link
Member

Ah yeah, that's a known limitation of the version detection we have. I don't know if there is a tracking issue for this somewhere.

@188599
Copy link

188599 commented Nov 20, 2024

Is there a way to force a specific version to be used instead?

@devversion
Copy link
Member

Can you create a feature request for this? I think this is a good suggestion

@188599
Copy link

188599 commented Nov 20, 2024

Created this one #2118

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants