-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Imports must specify file extension when "type": "module" #118
Comments
Thanks for the report @viglucci! TypeScript and file extensions is a bit of pain in this regard. It will be interesting to follow comments on this, as many packages must be facing this issue with webpack. I'll have a look and see if anything else can be done. |
@viglucci can you confirm if the This issues happens when the project that you are trying to use |
As mentioned by @JayaKrishnaNamburu, this library does not add |
Sorry for the radio silence on this issue. I've since moved on from the project where this issue was occurring, so I wasn't able to continue the conversation. Thanks for closing. |
Describe the bug
Attempting to leverage this package with webpack 5 causes an exception during build.
Full error:
To Reproduce
Simply importing the lib when using webpack 5 causes the error.
Expected behavior
File extensions are mandatory when using
"type": "module"
inpackage.json
.Frameworks/Libraries used
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
The text was updated successfully, but these errors were encountered: