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
Hi, thanks for this great plugin :)
It works great for me, but unfortunately only outside docker:
My docker image for my web app builds fine when my frontend doesn't import any scss file, but it needs a single scss file (index.scss), and when the frontend imports it, yarn build fails with this error:
#29 469.0 [!] RollupError: Unexpected token (Note that you need plugins to import files that are not JavaScript) #29 469.0 ../../index.scss (1:5) #29 469.0 1: html { #29 469.0 ^
In the Dockerfile I'm doing yarn install before yarn build and I have "rollup-plugin-scss": "^3.0.0", in my devDependencies, so it should work, right?
Here I posted my Dockerfile, package.json and rollup.config.mjs file for context: https://gist.github.com/Boscop/67fe407a634ee6dcf9f55abfe4328f45
E.g. this is the rollup.config.mjs file:
Btw, outside of docker (on Windows 10), yarn build works fine, even when my project imports the scss file!
So I'm wondering, why is it only failing inside docker?
It seems I'm stuck with this, so I'd really appreciate any hint for how to solve this :)
The text was updated successfully, but these errors were encountered:
Hi, thanks for this great plugin :)
It works great for me, but unfortunately only outside docker:
My docker image for my web app builds fine when my frontend doesn't import any scss file, but it needs a single scss file (
index.scss
), and when the frontend imports it,yarn build
fails with this error:In the Dockerfile I'm doing
yarn install
beforeyarn build
and I have"rollup-plugin-scss": "^3.0.0",
in mydevDependencies
, so it should work, right?Here I posted my Dockerfile, package.json and rollup.config.mjs file for context: https://gist.github.com/Boscop/67fe407a634ee6dcf9f55abfe4328f45
E.g. this is the
rollup.config.mjs
file:Btw, outside of docker (on Windows 10),
yarn build
works fine, even when my project imports the scss file!So I'm wondering, why is it only failing inside docker?
It seems I'm stuck with this, so I'd really appreciate any hint for how to solve this :)
The text was updated successfully, but these errors were encountered: