-
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
NgModuleLoader not Webpack-friendly #12285
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! |
@jgw96 This is not a support question but indeed a bug report. |
After investigation and according to the docs, this can be resolved with require context. @jgw96 Are you open to a PR on this? |
@sinedied I am facing same issue. Can you please explain what you did to fix the issue in detail what you mean by "resolved with require context" |
I did not fix the issue and went with the (harmless) warning since I want to keep a vanilla angular-cli setup. However if you eject your webpack configuration, you can either ignore it or use a require context setup to silence the warning. |
Same issu.. hope @ionic-team will fix it soon as possible to realy enable Ionic UI on a simple standard Angular CLI project. |
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 (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
When trying to build a Angular app using
ionic-angular
without the Ionic CLI but with webpack (usingangular-cli
for example), this warnings appear during build:These are due to the dynamic
System.import()
making Webpack unable to alias properly the files to import statically.Expected behavior:
It should build without warnings.
Steps to reproduce:
Create a new project with
angular-cli
, thennpm install -S ionic-angular
and includeionic-angular
modules inapp.module.ts
.Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: