-
Notifications
You must be signed in to change notification settings - Fork 3
Module imports are not working #2
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 can't replicate this anymore, at least with |
also works with |
Verifying this now on latest |
@iurimatias I can still reproduce this on both,
|
So after I saw embarklabs/embark-angular-template#2 (comment) I tried it again by importing modules including their file extension. This seems to work perfectly fine but I honestly didn't expect this. I think we should support importing modules without specifying the file extension. |
Using embark's Even without giving a file extension ( |
Also unable to reproduce with embark's |
That is very weird, because I still manage to reproduce this. |
When trying to import symbols from any other TS module within an embark project that based on this template, webpack isn't able to resolve the module paths.
Here's how this can be reproduced:
Then, take the
Greeter
class fromapp/js/index.ts
and move it intoapp/js/greeter.ts
:Next try to import
Greeter
from this new file insideindex.ts
:This will result in:
The text was updated successfully, but these errors were encountered: