-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
TypeScript issues #33
Comments
Maybe obvious, but how do I reproduce the issue? 🤔 Once compiled imported files seem to contain an extension already. |
/cc @benmccann in case you know how to reproduce this problem. |
@fabiospampinato if you do With #38, the file extensions are present in the compiled output |
Here are the compiler options to reproduce this: "compilerOptions": { Until the fix is merged, there is a fixed version available at @tempfix/watcher, https://code.foss.global/tempfix/watcher This error is present also in the dependencies of this package. |
Same issue here. I believe the extension name is required to be fully ESM compatible. |
Yeah, it sounds like it's a bug in tsex, which is used to package this library: https://github.com/fabiospampinato/tsex |
I finally had the time to look into this, but it's going to take a little longer to fix it. A brain dump:
So yeah I need to go over these packages, hopefully I can get it done by tomorrow, it may take a little longer than that. In general I'd recommend putting |
Oh, where is the output non-ESM with this flag? I hadn't noticed anything non-ESM with #38, but would be curious to learn more so I can keep an eye out for it in other projects I work on |
Unfortunately I can no longer seem to be able to reproduce the issue 🙃 I don't know if I had done something wrong the other day or what. This issue should be fixed by this commit (and doing the same thing for everything |
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './enums.js'?
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './watcher_handler.js'?
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './watcher_locker.js'?
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './watcher_poller.js'?
... and so on.
The text was updated successfully, but these errors were encountered: