-
Notifications
You must be signed in to change notification settings - Fork 19
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
'.ts' is not a valid suffix for a module - Consider renaming the repo. #9
Comments
Yeah - that seems pretty annoying. Changing the name makes sense. |
Buggered it up a bit - but slight issue is that it's not going to be possible to rename to oxide-ts due to being too similar to the original package name. Thoughts? |
This error only gets reported when the import failed to resolve to anything—expected if, e.g., someone had written this before running We usually see this pointing to a file, not a directory relying on index-file resolution. I would have thought that index-file resolution does work here, but I can’t remember for sure off the top of my head. Anyway, |
Thanks so much for your reply Andrew, clearly I'd misunderstood the problem. @rrichardson Does this resolve your issue? |
When using oxide.ts in the latest (anything after 4.2) typescript, I get this error:
IMO it's a bug in tsc, because I'm not trying to import a local file, but a module instead, which should be obvious from the lack of local path separator.
There are a bunch of people complaining about this, also Deno requires file extensions, instead of banning them. I think this restriction will be lifted, but either way, to avoid current and future errors, would you consider renaming
oxide.ts
tooxide-ts
?see:
microsoft/TypeScript#38149
microsoft/TypeScript#37582
microsoft/TypeScript#44839
The text was updated successfully, but these errors were encountered: