-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Webpack: require function is used in a way in which dependencies cannot be statically extracted
#1169
Comments
This is fixed in ``` js`
|
Yeah, should be fixed when you install |
Awesome! |
Google brought me here - thank you - got the same errors with alpha-8.. upgrading to 8-1 magically worked.. thanks! |
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. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
To be able to build an Angular Material 2 project using webpack without warnings or errors.
What is the current behavior?
While I was able to build a webpack-based project using the previous public release (2.0.0-alpha.7-4 I believe?), upgrading to 2.0.0-alpha.8 results in the following:
The warning is generated for all Material 2 javascript files (including
.umd.js
files). The main issue that this warning triggers webpack into trying to include all files in the directory the javascript file lives in (including.json
and.md
files for example) which causes the build to fail.What are the steps to reproduce?
Build a Angular Material 2 project using webpack.
What is the use-case or motivation for changing an existing behavior?
N/A
Which versions of Angular, Material, OS, browsers are affected?
Is there anything else we should know?
I also tried webpack 2 to see if that would help, but it causes the same problem.
The text was updated successfully, but these errors were encountered: