-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Help Wanted] Node-sass issue in docker #145
Comments
Hello there, @heteibako , Thank you for your interest in working with our products. We'll leave the issue open, and maybe someone from our community will come to your rescue. Best, |
Hi, thanks for your answer.
I have managed to solve the issue. It comes out that the google-maps-react package caused the issue. After removing it from the package.json and ran a clean install, I was able to run the container.
Not sure how this nom package relates to the issue but definitely working.
Also can be that an update would have solved the issue. Did not try it though.
…Sent from my iPhone
On 23. Nov 2020, at 08:54, Nazare Emanuel-Ioan ***@***.***> wrote:
Hello there, @heteibako ,
Thank you for your interest in working with our products.
Unfortunately, we haven't worked with Docker as of the moment, and we cannot help you with this.
We'll leave the issue open, and maybe someone from our community will come to your rescue.
Best,
Manu
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Nice, thank you for the details. |
Version
1.9.0
Reproduction link
http://localhost:3000
Operating System
Mac Osx BigSur
Device
MacBook Pro 15 retina
Browser & Version
Chrome latest
Steps to reproduce
Running the the app in a dockerized container
then I get this error:
Failed to compile.
./src/assets/scss/material-dashboard-pro-react.scss (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-6-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--5-oneOf-6-3!./node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-6-4!./src/assets/scss/material-dashboard-pro-react.scss)
To import Sass files, you first need to install node-sass.
Run
npm install node-sass
oryarn add node-sass
inside your workspace.What is expected?
The React app runs in the docker environment
What is actually happening?
The compile process results to fail
Solution
My Dockerile looks like this
FROM node:10
Create app directory
WORKDIR /app
COPY package*.json ./
COPY . .
RUN npm install
RUN npm rebuild node-sass
RUN npm run build
EXPOSE 3000
CMD ["npm", "start" ]
Additional comments
The text was updated successfully, but these errors were encountered: