Skip to content
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

"npm run build" says "...window is not defined...", pls help #60

Closed
mclxly opened this issue Nov 4, 2016 · 5 comments
Closed

"npm run build" says "...window is not defined...", pls help #60

mclxly opened this issue Nov 4, 2016 · 5 comments

Comments

@mclxly
Copy link

mclxly commented Nov 4, 2016

ERROR in ./client/components/App/style.css
Module build failed: ReferenceError: window is not defined
at .../node_modules/style-loader/index.js!

btw, "npm run dev" works well

@egoist
Copy link
Owner

egoist commented Nov 4, 2016

can you provide a repro?

@mclxly
Copy link
Author

mclxly commented Nov 5, 2016

I just follow "Get started", nothing changed.

$ npm install -g vue-cli
$ vue init egoist/vuepack new-project
$ cd new-project
$ npm install

# edit files and start developing
$ npm run dev
# bundle all scripts and styles for production use
$ npm run build

# lint your code
$ npm run lint

@mclxly
Copy link
Author

mclxly commented Nov 5, 2016

@egoist Curiously, today I create a new project and works well. Thank you anyway!

@mclxly mclxly closed this as completed Nov 5, 2016
@egoist
Copy link
Owner

egoist commented Nov 12, 2016

This may be related to afbb14a, I unexpectedly added style-loader in extract-text-webpack-plugin.

@mclxly
Copy link
Author

mclxly commented Nov 12, 2016

@egoist 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants