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
Vite 2.4.x can't find sass #4170
Comments
I investigated, I think this is an error that happens specifically when using Yarn PnP. When using Yarn v1, the error disappears. Here is a screenshot of the underlying error, which was hidden behind this global catch: I'm not familiar with Yarn PnP, but I found that the error didn't simply go away when reverting my PR. I think the issue probably lies somewhere else. Is the error message indicative of an actual configuration error? Would love someone with more knowledge of Yarn PnP to take over here :) |
WAG here, but could it be due to using require instead of import? Imports appear to all be resolved correctly. yarn pnp supports workspaces (my proj is workspace hence the pnp file in there at the root and then again in the module) |
Based on the screenshot from @fwouts the issue in your reproduction is that you have two To get rid of that error you can tell the one at the root to ignore |
@merceyz That seems to fix it. I fiddled with it enough to get the pnp.js in the workspace to go away and not come back every time I ran yarn install. Just head scratching because it was working even when there was 2. But I don't know enough about it to want to look at it deeper, my primary concern is addressed.... |
Hi, im using yarn 2 with the node modules linker. I have my nuxt project in a subfolder and added to a workspace in my monorepo. Adding it to the root workspace doesnt fix it nor adding it to the actual project. Anyone know a fix. Seemes related to this |
Heres the layout if it helps: root
ive tried adding it to both nuxt with vite and the root workspace but nothing worked |
I'm closing this issue as it turns out not a Vite bug according to the above discussions. |
I'm having the same issue and I'm using
|
@selfagency you need to install the "sass" module just as the error message says |
@Niputi um yes, i know. it's installed. |
then please create a new issue with a reproduction @selfagency |
it's literally the same issue as the original post here |
it's not the same. you said you use npm and not yarn |
Describe the bug
Upgrading to either 2.4.0 or 2.4.1 causes vite to stop finding sass. 2.3.8 is fine. My App.vue uses scss style import.
Check out reproduction link. main branch has 2.3.8 works fine, vite-2.4.x-bug branch has the issue.
Reproduction
https://github.com/SheepReaper/Sheep.CommandAndControl.git
cd src/ListeningPostWebUi yarn dev
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: