-
Notifications
You must be signed in to change notification settings - Fork 349
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 errors with moduleResolution nodenext and long.js #891
Comments
perhaps related to this? |
The long.js#109 insinuates this was fixed in their 5.2.3 release, which technically we only depended on 5.0.0, so @rjwalters I just released a fix that tries depending on Fwiw I kind of doubt it will; that error message is interesting:
The error is coming from within long's own
Should actually be:
Which kind of makes sense, b/c that ...although still, that says "if the file you're importing uses @rjwalters questions would be:
All said, I'm not sure why this is not working for you, but is working fine for ts-proto's test suite. Any insights you can bring in that regard will be helpful in resolving this (i.e. so far this "works for me" 🤷 ). |
Okay, I can reproduce this issue with:
So, @rjwalters my guess is that you're not passing |
I can confirm that I have I changed my protoc command to include the "--esModuleInterop" flag:
This did not result in any changes in the generated files so the original error still appears when I run "nest build" on my project. I'm not sure what to try when editing
this creates new errors:
|
here's my full tsconfig.json:
|
Yeah sorry, I'd completely made up
What do the Since you're using |
I'm not using
with umd/index.js edited to:
I get the error:
|
Can you just set |
setting All of the other packages I am currently using depend on long@^4 -- maybe there are still some problems to be worked out on long@5... I can open an issue there. |
Cool, filing an issue against long.js sgtm. Fwiw I wonder if they should stop trying to "import the ESM types into the umd/index.d.ts" and just copy/paste the types around instead. Granted, umd/index.d.ts would no longer being a 2-liner, but my guess is that it would be less brittle. 🤷 |
Fwiw I think dcodeIO/long.js#125 is a good description of what's going on, and it's not a ts-proto issue, so I'm going to close this specific issue out. |
The most recent release bumps the dependency for
ts-proto-descriptors
to 1.14, which in turn causes thelong
package dependency to go from 4 to 5. I am having commonjs/ecmascript problems that seem to be related to long 5 building my nest js project...reverting to 1.151 fixes the problem
The text was updated successfully, but these errors were encountered: