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

style.module.scss is not loading #25

Closed
sameroso opened this issue Jun 25, 2021 · 4 comments
Closed

style.module.scss is not loading #25

sameroso opened this issue Jun 25, 2021 · 4 comments

Comments

@sameroso
Copy link

image

Trying to load component that uses style.module.scss and shows this error

@sameroso sameroso added the bug Something isn't working label Jun 25, 2021
@fwouts
Copy link
Owner

fwouts commented Jun 25, 2021

Thank you for the bug report @sameroso. Do you have the Sass package installed already in that repo?

@anurag145
Copy link

I installed Sass package and it worked, but I already have node-sass installed for the same project? Ideally that should have worked right? or for now do we need to add sass package as a dev dependency?

@fwouts
Copy link
Owner

fwouts commented Jun 28, 2021

Hi all, thanks for the bug report!

You currently do need to install sass in your project for React Preview to work. This is due to how Vite (the engine behind React Preview) works under the hood.

I've opened a PR in Vite, depending on how that goes we may be able to fix it :)

@fwouts
Copy link
Owner

fwouts commented Jul 14, 2021

Hi there, you won't need sass installed in your project from React Preview v0.3.0 onwards. It should be available in a few minutes once it's gone through Microsoft's moderation pipeline :)

Please feel free to reopen this if you still see issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants