-
Notifications
You must be signed in to change notification settings - Fork 14
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 should specify the file extension #50
Comments
Yes, it is a messy issue tbh. If you want to read more about the whole problem microsoft/TypeScript#16577 For now, I've added a small task to add the .js extensions so this should work good with the latest version I've just published v0.16.0 |
Thanks for the quick fix! |
Sorry to bother you again, but it seems there are still 2 issues: import { unsafeHTML } from 'lit-html/directives/unsafe-html'; And also exports should specify it: export { navigate } from './lib/actions'; If I fix those 2 locally, it works fine. |
@giejay sorry you are right, it's not working for the non default imports, sorry I'll have a look at this again |
@giejay please try again with v0.16.1 |
@fernandopasik So the export in lit-redux-router seems to be fixed now but the import in route.ts is still missing an extension:
|
Thank you for spotting it. This one is a different one, because the others were relative imports. |
Hi @fernandopasik, any update? |
@giejay after more thinking on this I switched to using .js extensions in typescript. Everything is out in the 0.17.0 version |
It should be fixed now. If there's any remaining issue please comment again. |
Hi, checked it yesterday and all is working fine now! Thanks |
I'm upgrading my project to webpack 5 and I'm seeing the following errors when using the lit-redux-router lib:
After googling a bit, I discovered that all imports should specify the extension when the type is set to "module" in the package.json.
When I look at the code, for example the reducer: https://github.com/fernandopasik/lit-redux-router/blob/master/src/lib/reducer.ts
All the imports are not specifying the extension, which makes my build fail. Is it possible to add the extension, or shall I make a PR which does this?
The text was updated successfully, but these errors were encountered: