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

Frontend Docker on Mac M1 #19

Open
jpwiedekopf opened this issue Jun 20, 2022 · 0 comments
Open

Frontend Docker on Mac M1 #19

jpwiedekopf opened this issue Jun 20, 2022 · 0 comments

Comments

@jpwiedekopf
Copy link

The Visualisierung container doesn't build on my work laptop, a MacBook with Apple Silicon, due to node-sass not building on arm64.

I was able to let it build by replacing node-sass in the package.json with sass, version +1.52.3. This is a recommended workaround 1 2, since libsass, which node-sass requires, is deprecated 3. Since sass exposes the same API to node-sass, replacing with this newer and supported package should be suitable.

Here is a patch for the package.json:

diff --git a/package.json b/package.json
index dc6dd94..309bef3 100644
--- a/package.json
+++ b/package.json
@@ -91,7 +91,7 @@
     "mini-css-extract-plugin": "^0.9.0",
     "mocha": "^9.1.3",
     "moment": "^2.27.0",
-    "node-sass": "^4.14.1",
+    "sass": "^1.52.3",
     "optimize-css-assets-webpack-plugin": "^5.0.4",
     "react": "^17.0.2",
     "react-dom": "^17.0.2",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant