-
-
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
Components named 'Create' fail confusingly #2212
Comments
Components named |
Well this is a new and interesting type of naming conflict, present only in dev mode. The methods in the object returned by a Making this even more confusing, the REPL by default does not actually show you the dev mode code that it's running and which is causing the error. |
Presumably the most straightforward way to handle this would be to add the names of each of those methods to the |
Opened #2213, which instead pushes the deconflicting responsibility into each block/fragment, where it probably belongs. This does mean that the component instance will win out and get the |
deconflict fragment method aliases with other identifiers
I was recieving an error
(intermediate value).$$ is undefined
and it turns out this is because I named my component 'Create'. I'm guessing this clashes with an internal Create class or function or a javascript keyword (I don't remember it being one)?This should probably give a descriptive error (I don't know if it could be renamed?). This was incredibly confusing and difficult to work out what was going on. Renaming fixed it.
REPL
The text was updated successfully, but these errors were encountered: