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

[Help Wanted] Node-sass issue in docker #145

Closed
heteibako opened this issue Nov 21, 2020 · 3 comments · Fixed by #158
Closed

[Help Wanted] Node-sass issue in docker #145

heteibako opened this issue Nov 21, 2020 · 3 comments · Fixed by #158

Comments

@heteibako
Copy link

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 or yarn 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

@einazare einazare changed the title [Bug] Node-sass issue in docker [Help Wanted] Node-sass issue in docker Nov 23, 2020
@einazare
Copy link
Contributor

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

@heteibako
Copy link
Author

heteibako commented Nov 23, 2020 via email

@einazare
Copy link
Contributor

Nice, thank you for the details.
On our next update, we were planning to drop the usage of react-google-maps, they seem not to be maintained anymore.

einazare added a commit that referenced this issue May 7, 2021
Closes #145
Closes #140
Closes #138
Closes #137
Closes #133
Closes #16
This was referenced May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants