-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Upgrading to 1.1.0 from older version makes TS complain #248
Comments
This is either a problem of having an outdated TypeScript version or Next.js not being able to handle this |
Thanks for the explanation. |
FWIW I'm able to reproduce this issue when upgrading to This can be fixed by either:
To be fair, Typescript's documentation does indicate that it supports
|
Coming back here because this is still happening in another project. Package.json:
If I don't make what @darkobits wrote there, I get a If I make it by adding
If you want to reproduce, this repo has this error. |
After doing some more digging and experimentation: I think Sindre has already addressed this issue here in his Pure ESM Package gist, but to re-iterate what my take-aways are from that and other sources:
As such, I think this issue is not a problem with |
am not entirely sure what's going on or how this package is built, but it stops us upgrading to more recent versions of ow, perhaps the better approach will be to follow the commonly used patterns what most packages do (am not sure what that is sorry, but they just work without any hassle). This stops us using the newer version on multiple projects. |
My current project uses
"ow": "^0.28.1"
and it works perfectly.When I update to
"ow": "^1.1.0"
TS complains and saysCannot find module 'ow' or its corresponding type declarations.
.I'm using VSCode:
Below is some code that doesn't show the warning in the older version but shows in the new one.
The text was updated successfully, but these errors were encountered: