FredrikHolmqvist
Phoenix won't compile due to node-sass on Win10
Hello!
I’ve been trying to get Phoenix to compile for a week now, and my sanity is slipping through my fingers. Any suggestions on getting this to compile? I’ve been able to run Phoenix on this machine previously a few years back.
mix phx.new test
Elixir 1.9.1
OTP 21
Phoenix 1.5.1
Node 12.17.0
NPM 6.14.5
I’ve tried:
npm install
npm install node-sass
npm uninstall node-sass
npm rebuild
npm rebuild node-sass
Deleting node_modules
Installing brunch
mix phx.new --no-brunch
Clearing NPM cache
Creating new projects on different drives
Running with admin rights
CMD / PowerShell / GIT
Marked As Solved
c4710n
In short, replace node-sass with sass (dart sass), dart sass doesn’t need to rebuild anything.
In details, replace "node-sass": "xx.xx.xx" with "sass": "^1.22.10" in package.json. Then, sass-loader will use sass (dart sass) automatically.
Give it a try.
Also Liked
c4710n
phx_new 1.5.1 doesn’t provide --no-brunch option anymore. I am wondering why your output is showing brunch related things. That’s weird.
You need to check whether your phx_new is 1.5.1, too.
FredrikHolmqvist
Changing the dependency to be sass worked! I am beyond happy, now I can develop my favorite webframework on my main machine. Thank you!
c4710n
Hooray!
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









