-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Component name "Block" throws error during compilation. #3854
Comments
Weird. I thought this would have been fixed in the latest 3.13.0 alphas but this does not seem to be the case. Thanks for the report! |
This only affects dev mode. It looks like the |
This is happening for me too after extracting block out to new a component. |
|
Wow, @kwangure, you had the same problem at the same time as me. Incredible. |
Maybe it's a problem with slots |
1 similar comment
Maybe it's a problem with slots |
deconflict `block` var used in dev mode
Describe the bug
The component name "Block" seems to throwing the Svelte compiler off.
results in the error:
But simply changing the component name
import Blocky from "./Block.svelte" //path is the same
works. Also, using theBlock
component more than once get's rid of the error.https://svelte.dev/repl/10c035a984e24c3b85cabd7c1455c1af?version=3.12.1
Information about your Svelte project:
The text was updated successfully, but these errors were encountered: