-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Updating from 0.2.3 to 0.4.0 Html Webpack Plugin - ReferenceError: window is not defined #564
Comments
Can you show what your |
index.html
Aaah.. probably is the script / stylesheet pointing to node_modules right? |
Yea, this was not really supported. import 'react-mdl/extra/material.css';
import 'react-mdl/extra/material.js'; in |
It worked! Thanks. |
Sent a PR to |
stayradiated
pushed a commit
to stayradiated/create-react-app
that referenced
this issue
Sep 7, 2016
feiqitian
pushed a commit
to feiqitian/create-react-app
that referenced
this issue
Oct 25, 2016
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I tried to update to 0.4.0 following the changelog, and got this after "npm start"
Have I done something wrong?
OBS: I am using Windows 10 and Git Bash as my Terminal.
Html Webpack Plugin:
ReferenceError: window is not defined
C:\Projects\cantina-self-service\control-panel/
/react-scripts//style-loader/addStyles.js?:14:30C:\Projects\cantina-self-service\control-panel/
/react-scripts//style-loader/addStyles.js?:9:47C:\Projects\cantina-self-service\control-panel/
/react-scripts//style-loader/addStyles.js?:31:68C:\Projects\cantina-self-service\control-panel/~/react-mdl/extra/material.css?:7:93
C:/Projects/cantina-self-service/control-panel/index.html:561:2
C:/Projects/cantina-self-service/control-panel/index.html:519:30
C:/Projects/cantina-self-service/control-panel/index.html:50:20
C:\Projects\cantina-self-service\control-panel/index.html?./
/react-scripts//html-webpack-plugin/lib/loader.j s:1:367C:/Projects/cantina-self-service/control-panel/index.html:552:2
C:/Projects/cantina-self-service/control-panel/index.html:519:30
[control-panel]/[react-scripts]/[html-webpack-plugin]/index.js:108:8
[control-panel]/[react-scripts]/[tapable]/lib/Tapable.js:71:13
[control-panel]/[react-scripts]/[webpack]/lib/Compiler.js:226:7
[control-panel]/[react-scripts]/[webpack]/lib/Compiler.js:54:18
[control-panel]/[react-scripts]/[webpack]/lib/Compiler.js:403:12
[control-panel]/[react-scripts]/[tapable]/lib/Tapable.js:67:11
[control-panel]/[react-scripts]/[webpack]/lib/CachePlugin.js:40:4
[control-panel]/[react-scripts]/[tapable]/lib/Tapable.js:71:13
[control-panel]/[react-scripts]/[webpack]/lib/Compiler.js:400:9
[control-panel]/[react-scripts]/[webpack]/lib/Compilation.js:577:13
[control-panel]/[react-scripts]/[tapable]/lib/Tapable.js:60:69
[control-panel]/[react-scripts]/[webpack]/lib/Compilation.js:572:10
[control-panel]/[react-scripts]/[tapable]/lib/Tapable.js:60:69
[control-panel]/[react-scripts]/[webpack]/lib/Compilation.js:567:9
[control-panel]/[react-scripts]/[tapable]/lib/Tapable.js:60:69
[control-panel]/[react-scripts]/[webpack]/lib/Compilation.js:563:8
[control-panel]/[react-scripts]/[tapable]/lib/Tapable.js:60:69
[control-panel]/[react-scripts]/[webpack]/lib/Compilation.js:525:7
[control-panel]/[react-scripts]/[webpack]/lib/Compiler.js:397:15
The text was updated successfully, but these errors were encountered: