-
Notifications
You must be signed in to change notification settings - Fork 12k
Issue with webpack2 #3320
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
Is there an index.ts in the animation directory? |
Indeed, I added it to the post |
the only thing that's exported is 'reflow'. |
I fixed all code examples sorry |
Does it only happen with the enum? I remember reading about an issue regarding exports and enums but don't remember where I saw it. |
It's with everything I export with |
I wonder if this is related to |
I'm not using ngc or I did nothing to do so. Maybe that is related to typescript handling of |
Closing as outdated, please let me know if you still experience this error. Might also be related to #2741. |
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. |
OS?
macOs Sierra
Versions.
I guess the bug comes from webpack2 that now understands import/export. I have a shared folder with a lot of services, and I import them inside my
app.module.ts
:app/shared/logger/logger.ts
:app/shared/logger/index.ts
:app/shared/index.ts
app/app.module.ts
:If I change the last line to
console.log(Level, require('./shared').Level);
they both get printedThe text was updated successfully, but these errors were encountered: