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

Using template with require causes error to be reported. #165

Closed
bhagatparwinder opened this issue Sep 7, 2017 · 4 comments
Closed

Using template with require causes error to be reported. #165

bhagatparwinder opened this issue Sep 7, 2017 · 4 comments

Comments

@bhagatparwinder
Copy link

bhagatparwinder commented Sep 7, 2017

In a component where we use require to load in the template angular language service reports this error:
[Angular] Component TestComponent must have a template or templateUrl.

@component({
selector: "test-component",
template: require("./test-component.html")
})

Screenshot

Updated issue: #70

@andycwk
Copy link

andycwk commented Oct 20, 2017

Yeh... I see the same issue, and for a project that uses require(...) heavily for templating it would be nice to see this tool following require(...) in addition to inline & url template styles!

@mrjamesriley
Copy link

Am still having this issue myself, with VS Code 1.17.2 (which is using Typescript 2.5.3).

@chuckjaz
Copy link
Contributor

The language service does not support require as it is only supported during JIT.

@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 Feb 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants