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

[Bug]: Compile error when I use Svelte style tags #2744

Closed
fadrian06 opened this issue Jul 1, 2024 · 1 comment · Fixed by #2749
Closed

[Bug]: Compile error when I use Svelte style tags #2744

fadrian06 opened this issue Jul 1, 2024 · 1 comment · Fixed by #2749
Assignees
Labels
🐞 bug Something isn't working

Comments

@fadrian06
Copy link

Version

System:
    OS: Windows 7 6.1.7601
    CPU: (2) x64 Intel(R) Celeron(R) CPU 847 @ 1.10GHz
    Memory: 488.38 MB / 1.83 GB
  Browsers: {}

Details

I love working Rsbuild with Svelte using the @rsbuild/plugin-svelte, sometimes I use global css extracted in css files, but in some cases for small practices I want to use inline style tags in svelte components, but the compiler begins to give me Compile errors like this...

image

I simply restart the rsbuild dev command, but each change throws again the compile error...

Reproduce link

https://github.com/fadrian06-practices/aprendiendo-svelte/tree/main/projects/02-tic-tac-toe

Reproduce Steps

  1. Install the dependencies with pnpm install, although with npm I got the same error

  2. Starts the local development server with pnpm dev and try to modify anything in any svelte components located in src/**/*.

  3. If you get the error, restart the server or refresh the browser getting the same error each refresh.

@fadrian06 fadrian06 added the 🐞 bug Something isn't working label Jul 1, 2024
@chenjiahan chenjiahan self-assigned this Jul 2, 2024
@chenjiahan
Copy link
Member

Thanks for the feedback, I think we misconfigured the emitCss option of svelte-loader, I will fix that

image

https://github.com/sveltejs/svelte-loader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants