-
Notifications
You must be signed in to change notification settings - Fork 14
Angular warning #64
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 think it is due to the
|
The last change to it is from |
Seems like more frameworks are suffering from this: angular/angular-cli#18025 |
Looks like you should whitelist the module like it is done angular.io/guide/build#configuring-commonjs-dependencies:
|
Hi! Doing that, as the documentation says, would "disable the warnings", not fix the issue. And I don't want to disable any warnings 😊 But thanks for the quick response anyway. |
I'm no sure if it is even fixable. Switching the model to something else than |
I read the docs you pointed and I saw that there is still no "standard" defined, so anything (CommonJS, AMD or ES6 modules) could be the outcome:
I've seen your code is CommonJS style, so:
It's Angular who says this :
So, ok, as there is no "well" or "wrong" because there is no standard defined yet, I'll close this issue. Thanks for the docs, I think I've learned something new and that's something I appreciate. Keep up with the great work, as you said I'll dismiss this warning and I'll use it anyway. |
Ah thanks for your kind comments. I try to keep it as close to Node.js as possible, but I'm happy to learn that it is usable in Angular (as I would expect). Good luck with your project. |
Hi!
I just started using this tool and I really love it, kudos for the work :D
I am using it on a Game I am making using Angular, so that classes can talk to each other with events, and when I build the Angular project using
ng build --prod
I get this warning:Expected Behavior
The expected behavior would be to see no warning.
Current Behavior
There is no problem, it's just a warning and everything works as expected, but I'm opening this issue in case it really is causing any optimization problem I'm just not aware of.
Possible Solution
Sorry, can help on how to fix it.
Steps to Reproduce
Context (Environment)
This warning shows on macOS as on Windows.
Also shows both on Angular 10 (where I started using it) as on Angular 11 (which was just released yesterday).
Thanks!
The text was updated successfully, but these errors were encountered: