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
Node.js 13.14.0 'No "exports" main resolved in' @babel/helper-compilation-targets/package.json #900
Comments
@JustFly1984 you've duplicated your own #630 -- as you wrote there the issue is a bug in Node itself, not in TSDX. Since then Node 13 reached EOL in June (c.f. #880). I wouldn't recommend using it as such and in either case it's caused some widespread issues with conditional exports in the community. Regarding the TSDX v0.14.0 issue, that duplicates #888 and is upstream in rpts2 as the error suggests . #892 duplicated it as well and pointed out it only seems to happen with UMD for some reason (which #898, #896, and this seem to confirm). Please search the issues and upstream before filing new ones. |
@agilgur5 Thank you for fast response! I can't redeploy docs since June. My lib is used by 2500 projects, and growing. I want to start recording video tutorials. Have a great day! |
ezolenko/rollup-plugin-typescript2#221 and #823 were the last two things I was looking to get in before releasing TSDX v0.14.1, but given ezolenko/rollup-plugin-typescript2#221 hasn't been released in over a week since merging and this UMD cache issue seems somewhat widespread, I was considering cutting a release for TSDX v0.14.1 early, possibly today. But you should be able to use TSDX v0.13.3 fine. This bug is a bug in EOL Node 13, not in TSDX.
I'd be surprised if it doesn't. A large proportion of developers are already using Node 14.
Yes, the internal PR I linked to regarding Node 13, #880, upgraded TSDX's internal CI matrix to use Node 14. So can confirm it supports Node 14. I think a number of users have confirmed that as well. |
@agilgur5 I have tested tsdx@0.13.3 and tsdx@0.14.0 with node 14.13.1 and it fails the build with same error 0.13.3
0.14.0
|
Well actually this is a slightly different error than the one in Node 13, it says "defined" instead of "resolved". I looked into it for you and the upstream issue you linked to indeed suggests both are to blame and that
Yes, I've already written and linked to where this error comes from and which issues it duplicates and which PR solves it. There's quite a lot of details in those issues. That's not unique to Node version. If you pass this error, you might still hit the error above. Though TSDX v0.14.0 upgraded the internal |
The v0.14.0 cache issue has been fixed with #896 / ezolenko/rollup-plugin-typescript2#243 and just released in v0.14.1. You should be able to get v0.13.3 to work fine though, as I wrote above that seems to be directly due to your |
Current Behavior
Node 13.3.0 - issues on CI/CD
browserlist@^4.14.5
dependency of dependency, breaking netlify build of our docs and examples by requiring node engine version newer than 13.7.0tried both last versions of tsdx@0.13.3 v0.14.0, and experiencing different bugs in CI/CD.
v0.13.3
v0.14.0
Expected behavior
Should build packages with any node version.
Suggested solution(s)
Fix build pipeline
Additional context
You can fork https://github.com/JustFly1984/react-google-maps-api, run
nvm use
in each package directory separate, to test that each package builds correctly with combination tsdx@0.13.3 and node v13.3.0But if you run
nvm use
in the root of repository (v13.14.0), and try to run build scripts from root package.json to build docs and gatsby.js example, you'll get errors^^^Your environment
PS. My project is in condition where I can build and publish new versions of the lib, but can't deploy docs and examples.
The text was updated successfully, but these errors were encountered: