Uncaught TypeError: L.Application is not a constructor #68
Replies: 6 comments 1 reply
-
I think the issue is in your setup. Could you share an example repo of the problem happening? |
Beta Was this translation helpful? Give feedback.
-
Yeah sure, I've just made a new repo, partially cloning my app but using all the same dependencies and config. |
Beta Was this translation helpful? Give feedback.
-
Your repo starts successfully on my machine, it's a problem with your local dependencies. You should delete the node_modules and reinstall locally. |
Beta Was this translation helpful? Give feedback.
-
Were you able to see the spline on the rendered component? The error is thrown within the developer tools console not in the terminal since it's not a syntax error. I created a new repo and reinstalled all the node modules, so I don't think that is the issue. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi, I saw that this was moved to a discussion rather than an a issue. Any reason or update on this? @marcofugaro |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm having some issues rendering my spline onto my project. It all looks fine on the CodeSanbox link provided but when using it within my own app, there seems to be an issue. I am using React w/ Typescript and webpack. Here is the component:
Whenever I try to render the component, a TypeError is thrown regarding
L.Application is not a constructor
:I'm not really sure what the error means but it was addressing a
ForwardRef
component so it could potentially be something around theForwardRefExocticComponent
as shown belowPlease let me know if you have any ideas. Thanks 🙂
Beta Was this translation helpful? Give feedback.
All reactions