Design comparison
SolutionDesign
Solution retrospective
I used NPM to install the 'leaflet' module but ran into difficulty so reverted back to using the CDN version.
Upon trying to import the module I would get the following error message:
- "Uncaught TypeError: Failed to resolve module specifier "leaflet". Relative references must start with either "/", "./", or "../"."
Does anybody have any idea why this was happening? I have imported modules and used modules before without difficulty but on reflection these were while using React which has a built in bundler.
Thank you.
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord