-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Could not resolve [moduleName] relative to [path] for modules ending with "*.js" #14663
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
Comments
i'm getting this error ERROR in /home/kleidyaesara/public_html/aesara-knowledge-reservoir-client/src/app/dashboard/dashboard.module.ts (5,30): Cannot find module 'angular2-select'. webpack: Failed to compile. |
Sounds like this one can be closed based on #14664 (comment) |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Uh oh!
There was an error while loading. Please reload this page.
PR here #14664
I'm submitting a ... (check one with "x")
Current behavior
The issue is in
@angular/compiler-cli
when using AoT and referencing modules which end with.js
. For instance:Fails with error:
The issue is in:
CompilerHost.getCanonicalFileName
where the.js
fromaspect.js
is being stripped by the linem = m.replace(EXT, '');
, since it's considered as a relative path.Expected behavior
There should not be an error.
Minimal reproduction of the problem with instructions
Try to use the
@Wove
decorator fromaspect.js
.Angular 2.4 - 4.0.
According to microsoft/TypeScript#4595, stripping the file extension is not required because the TypeScript compiler accepts imports with which include extension.
The text was updated successfully, but these errors were encountered: