I'm struggling to get the webpack dev server setup in a docker container based on node:latest
Despite trying all the various incantations in Node Sass could not find a binding for your current environment, I keep getting the same error:
web_1 | ERROR in ./~/css-loader!./~/sass-loader/lib/loader.js!./src/sass/style.sass
web_1 | Module build failed: Error: Missing binding /prject/node_modules/node-sass/vendor/linux-x64-59/binding.node
web_1 | Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 9.x
web
here's the current
# Dockerfile
RUN yarn cache clean && yarn install --non-interactive --force
RUN rm -rf node_modules/node_sass
RUN npm rebuild node-sass
the rebuild step suggests that the binary is installed and checks out:
Binary found at /advocate/node_modules/node-sass/vendor/linux-x64-59/binding.node
Testing binary
Binary is fine
Also confusing to me is that I do get this
web_1 | Found bindings for the following environments:
web_1 | - OS X 64-bit with Node.js 7.x
which makes me think it's using the host platform in some capacity that I don't quite follow.
node_modules
to your.dockerignore
file. The install will take a bit longer but you should not get any cross over between your dev environment and container.docker-compose
volume entry is the culprit?- ../code-frontend/:/code/
... initial tests (commenting out said line and rebuilding) suggest so