Git Product home page Git Product logo

Comments (9)

jpsierens avatar jpsierens commented on July 25, 2024

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.

jpsierens avatar jpsierens commented on July 25, 2024

Maybe someone with windows can help

from webpack-react-redux.

Vija02 avatar Vija02 commented on July 25, 2024

Might be related to this isaacs/rimraf#62

from webpack-react-redux.

maximilianb8 avatar maximilianb8 commented on July 25, 2024

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.

Tushkiz avatar Tushkiz commented on July 25, 2024

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.

jpsierens avatar jpsierens commented on July 25, 2024

Thanks @Tushkiz

It looks like using the global webpack solves the issue

Closing this

from webpack-react-redux.

Tushkiz avatar Tushkiz commented on July 25, 2024

@jpsierens you are welcome!
Global webpack is not required either, when called from npm scripts it is resolved local first.

from webpack-react-redux.

jpsierens avatar jpsierens commented on July 25, 2024

True!

from webpack-react-redux.

hobbeshunter avatar hobbeshunter commented on July 25, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.