You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thank you very much for droids library I've spend a lot of time to looking for. Now it's freaking easy to compile my sass scripts while code is running in browser.
It seems to work fine at all (there I mean that code works and compiles like expected) except one little thing. An error appers while using webpack.
The error:
ERROR in ./node_modules/sass.js/dist/sass.sync.js
Module not found: Error: Can't resolve 'fs' in 'C:\Projects\nr-fontface\node_modules\sass.js\dist'
@ ./node_modules/sass.js/dist/sass.sync.js 62:1108-1121 62:382030-382043
@ ./src/index.js
I'm confused but that error really doesn't prevent my code from working and compiling.
Further I've found the solution to add this to my webpack.config.js:
node: {
fs: "empty"
}
Is it really a total solution or you can recommend smth. more elegant?
fs comes from emscripten. I have not used sass.js in a webpack environment, only loaded it in the browser as static asset - I have no idea why webpack is complaining here, to be honest.
Is it really a total solution or you can recommend smth. more elegant?
Hello there!
First of all thank you very much for
droidslibrary I've spend a lot of time to looking for. Now it's freaking easy to compile my sass scripts while code is running in browser.It seems to work fine at all (there I mean that code works and compiles like expected) except one little thing. An error appers while using webpack.
The error:
I'm confused but that error really doesn't prevent my code from working and compiling.
Further I've found the solution to add this to my
webpack.config.js
:Is it really a total solution or you can recommend smth. more elegant?
The way I'm using your lib for now:
The text was updated successfully, but these errors were encountered: