-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Ionic 3 and Webpack 2 warning #11072
Comments
Hello! Thanks for opening an issue with us! As this seems like more of a support question i will urge that you ask this question on our forum or on our slack channel. Thanks for using Ionic! |
I run to the same issue updating ionic2-boilerplate to ionic 3 during unit testing command. It looks similar to those issues I got:
@ghaiat Did you managed to resolve this issue ? Also could you provide a little more context about it? |
For anyone having this issue, the fix is to add in you webpack configuration:
|
And together with angular 4 warnings it becomes |
Why is this issue closed? Since version 3 i also get these warnings
which basically says there is a dynamic import and dynamic imports should not be used. Since im using angular/cli and not ionic/cli (i only like the framework for build i simply use cordova and angular cli running |
I'm getting this error when running karma/jasmine tests, and I don't have a webpack conf where I can add the aforementioned fix. The folks over at webpack seem to imply that this is an issue that shouldn't be suppressed, so shouldn't we be talking about a library fix? |
@jgw96 Can you please reopen? I'm getting the same issue as @shanehughes3. I also don't have a webpack config and I have the problem when running karma/jasmine tests. This surfaced after upgrading to ionic |
I know this is not a final fix but both of you guys could have a different webpack config for your tests and implement the fix above(just so you can get rid of the warnings until ionic fixes it)' One issue is related to angular 4 the other one is from ionic native |
@cryo243 I can't find a webpack config in my app. I don't know where it is. Is it in the node_modules/angular folder? |
@kamok if you are using karma/webpack to run your unit tests you should have created a webpack config. |
@cryo243 I use angular/cli. Same set up as this seeder project: https://github.com/lathonez/clicker |
@kamok , that's because you are using angular cli together with karma. Angular cli uses webpack in the background but I'm not sure to what extent you can customize their Webpack config. |
Can someone post the contents of just what such a "test" webpack config should look like? |
I get this warning twice. Is the current solution still to suppress them? |
@jgw96 Any news guys? thanks in advance, it's really neccesary without eject the webpack configuration of angular to fix the issue! 👍
|
Hi guys, |
@jgw96 Justin, please reopen this issue. it's generated from the library because this is an incompatibility with the "ng serve" of the angular-cli. |
Hi @danbucholtz, Is possible to create a new release of Ionic with the fix of the default webpack configuration with the following fix? https://github.com/ionic-team/ionic-unit-testing-example/pull/34/files |
Guys, what do you think about the following PR? ionic-team/ionic-app-scripts#1360 |
this issue is not resolved ... |
@damsorian I'm waiting for Ionic 4 due to this issue... |
July 2nd 2018 and still not resolved...
|
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Ionic version: (check one with "x")
[ ] 1.x
[ ] 2.x
[x] 3.0
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
Current behavior:
Since i ve upgraded to ionic 3, i get this error in my webpack build:
Any idea why ?
Cheers
The text was updated successfully, but these errors were encountered: