-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Error Importing #161
Comments
It's probably a duplicate of #158. |
By the way you can "simulate" a default export with everything like this: |
We need some way to reproduce your issue, which also depends on if your environment is CommonJS or ES Modules, what bundler you are using, TypeScript, etc. Can you create and share a minimal example? |
Environment: CommonJS, ts.config:
|
Can you please try 4.0.0-alpha.0 |
v4.0.0 has been published - please reopen if you are still having this issue. https://www.npmjs.com/package/protomaps-leaflet |
I cannot use leafletLayer or import anything from the protomaps-leaflet module as I am constantly getting import errors relating to the import extensions within the module
No default export exists so I cannot use:
When I try and import leafletLayer, I get the following error:
ERROR in
/node_modules/protomaps-leaflet/dist/frontends/static.js 32:0-35\node_modules\protomaps-leaflet\dist\frontends'Module not found: Error: Can't resolve '../painter' in '
Did you mean 'painter.js'?
BREAKING CHANGE: The request '../painter' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
This is also repeated for:
The text was updated successfully, but these errors were encountered: