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 bs: webpack loop when executed in docker (Out of the box) #225

Open
jmsherry opened this issue Aug 21, 2016 · 2 comments
Open

npm bs: webpack loop when executed in docker (Out of the box) #225

jmsherry opened this issue Aug 21, 2016 · 2 comments
Labels
bug V2.6.0 Webpack update V4
Milestone

Comments

@jmsherry
Copy link

jmsherry commented Aug 21, 2016

Hi guys,

System: OSx 10.11.6 El Capitan using docker for mac

If you mern init a new project; npm i; docker-compose build; then docker-compose up the script gets as far as running npm run build:server then it starts to write both the cache-busted header bg image and a .webpack.res.<cache-buster>.js file straight into the root of the project. The webpack task never completes and you have to kill it.

Love the project, btw! Any help would be greatly appreciated

Thanks

@jmsherry jmsherry changed the title npm bs: webpack loop when executed in docker npm bs: webpack loop when executed in docker (Out of the box) Aug 21, 2016
@zoalst
Copy link

zoalst commented Aug 28, 2016

I ran into a similar issue on Ubuntu and fixed it by adding BABEL_DISABLE_CACHE=1 to the start:prod, build, and build:server scripts in package.json
It should look like this:

    "start:prod": "cross-env BABEL_DISABLE_CACHE=1 NODE_ENV=production node index.js",
    "bs": "npm run clean && npm run build && npm run build:server && npm run start:prod",
    "build": "cross-env  BABEL_DISABLE_CACHE=1 NODE_ENV=production webpack --config webpack.config.prod.js",
    "build:server": "cross-env  BABEL_DISABLE_CACHE=1 NODE_ENV=production webpack --config webpack.config.server.js",

Hope that helps.

@jmsherry
Copy link
Author

@zacharystenger Thanks man. I just ran it under the test conditions I mentioned above with the package.json altered to match what you have there, but tragically the issues still remain.

Cheers for the info though. 👍

@mannyhenri mannyhenri added bug V2.6.0 Webpack update V4 labels Jun 2, 2018
@mannyhenri mannyhenri added this to To do in MERN Roadmap via automation Jun 2, 2018
@mannyhenri mannyhenri added this to the 2.6.0 milestone Jun 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug V2.6.0 Webpack update V4
Projects
MERN Roadmap
  
To do
Development

No branches or pull requests

3 participants