You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Uncaught TypeError: L.Application is not a constructor #65
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 the ForwardRefExocticComponent as shown below
Please let me know if you have any ideas. Thanks 🙂
Yeah sure, I've just made a new repo, partially cloning my app but using all the same dependencies and config.
If you want to run it: npm install
then npm start
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.
Activity
marcofugaro commentedon Jul 25, 2022
I think the issue is in your setup. Could you share an example repo of the problem happening?
mr-akashdesai commentedon Jul 25, 2022
Yeah sure, I've just made a new repo, partially cloning my app but using all the same dependencies and config.
If you want to run it:
npm installthen
npm starthttps://github.com/mr-akashdesai/spline-mockup
marcofugaro commentedon Jul 25, 2022
Your repo starts successfully on my machine, it's a problem with your local dependencies. You should delete the node_modules and reinstall locally.
mr-akashdesai commentedon Jul 25, 2022
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.
mr-akashdesai commentedon Jul 25, 2022
Reinstalled node_modules again, same issue still.
