-
Notifications
You must be signed in to change notification settings - Fork 71
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 v17: Error loading tslib
helper library
#286
node v17: Error loading tslib
helper library
#286
Comments
this is from weiran-zsd/dts-cli#78. |
Hello @aladdin-add did you find any solution for this error ? I got it also with
|
"resolutions":{
"tslib": "2.3.1"
} |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as spam.
This comment was marked as spam.
i think my pr can fix this |
can try this before merge apply
|
@bluelovers I'm having trouble building with node 17 (unrelated to your PR), because something breaks semver either at runtime (before upgrading commonjs plugin) or at build time, so I had to disable version check. Do you see those problems at all? See this commit, which is basically your PR but with any changes needed to upgrade: cb2621f I used normal resolve (stole it from import resolve from "resolve";
const tslibPath = resolve.sync("tslib/tslib.es6.js"); Is your approach with |
u need build at node.js 16, and disable version test before publish new version once after this, enable ur version test will work |
a workaround: if you are using docker, you can change the |
@ezolenko u can see source code for watch what i do make it work on node.js 17 |
@bluelovers released in 0.31.0, thanks for the PR |
confirmed it has been fixed in v0.31.0. 🎉 and seems also fixed #267? |
- Fixes compiling the master on node v17.0+ - See ezolenko/rollup-plugin-typescript2#286
- Fixes compiling the master on node v17.0+ - See ezolenko/rollup-plugin-typescript2#286
This seems to have been fixed upstream in
So if we upgrade Also, to workaround prior to EDIT: see my |
Running `npm run push-main` gives this with nodejs 17: > Package subpath './package.json' is not defined by "exports" in /home/wouldntyouliketoknow/node_modules/tslib/package.json This change incorporates [the fix](ezolenko/rollup-plugin-typescript2#286) from rollup-plugin-typescript2 v0.31.0.
Running `npm run push-main` gives this with nodejs 17: > Package subpath './package.json' is not defined by "exports" in /home/wouldntyouliketoknow/node_modules/tslib/package.json This change incorporates [the fix](ezolenko/rollup-plugin-typescript2#286) from rollup-plugin-typescript2 v0.31.0.
* 🐛 load tslib failed on node18 ezolenko/rollup-plugin-typescript2#286 Closes #2 * 💚 pnpm@7 and pnpm cache * 📝 repo url * 💚 remove node14 & node12 support
What happens and why it is wrong
Environment
Versions
rollup.config.js
`rollup.config.js`:
tsconfig.json
`tsconfig.json`:
package.json
`package.json`:
plugin output with verbosity 3
plugin output with verbosity 3:
The text was updated successfully, but these errors were encountered: