Comments (9)
I went ahead and tested on my mac and it works fine. It must be something related to Windows, maybe it's the pathing? i.e. using \ instead of / for the paths.
from webpack-react-redux.
Maybe someone with windows can help
from webpack-react-redux.
Might be related to this isaacs/rimraf#62
from webpack-react-redux.
I've the same problem on Windows and isaacs/rimraf#62 doesn't work.
Now I remove rimraf dist and i create the directory dist and npm run build is ok.
But when I open the ./dist/index.html there's a blank page. The js and css file are correctly included...
thanks
from webpack-react-redux.
updating build
script in package.json
from
"build": "rimraf dist && node_modules/.bin/webpack --config ./webpack.production.config.js --progress --profile --colors"
to
"build": "rimraf dist && webpack --config ./webpack.production.config.js --progress --profile --colors"
solves the issue
Thanks.
from webpack-react-redux.
Thanks @Tushkiz
It looks like using the global webpack solves the issue
Closing this
from webpack-react-redux.
@jpsierens you are welcome!
Global webpack is not required either, when called from npm scripts it is resolved local first.
from webpack-react-redux.
True!
from webpack-react-redux.
@maximilianb8 it's a bit late, but in case anyone else stumples across that, here is an answer:
It's probably because you're not running it in a server and therefore browserHistory doesn't work. Change browserHistory to hashHistory in your index.js and it should work just fine. Read more here https://github.com/ReactTraining/react-router/blob/master/docs/guides/Histories.md
from webpack-react-redux.
Related Issues (20)
- Warning: [react-router] You cannot change <Router routes> warning on file change HOT 3
- Edit/Save drops a notice about react-router HOT 2
- How to apply middlewares in configureStore.dev.js? HOT 1
- npm run build fails HOT 3
- Server file HOT 1
- JSX files HOT 2
- Local version is working but the built html isn't HOT 2
- webpack will recompile on file change on OS X, but not on Linux HOT 2
- Update to webpack2 HOT 4
- yarn build HOT 2
- redux-devtools HOT 1
- Fresh install, unable to undo location changes in dev tools HOT 1
- Launch to heroku HOT 1
- Trouble integrating with the 'thunk' middleware HOT 4
- Unable to load images from local directory HOT 1
- I just download the demo and follow the instructions with no additional changes but when generate the dist and try to run the index.html I have an error HOT 1
- Open dist/index.html in browser, I got a blank page. HOT 1
- npm install failed for node sass on windows 10 HOT 1
- Build Failed for the following error HOT 6
- npm start HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpack-react-redux.