Skip to content
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

Incompatibility with Node 17 #279

Open
PanisSupraOmnia opened this issue Nov 30, 2021 · 2 comments
Open

Incompatibility with Node 17 #279

PanisSupraOmnia opened this issue Nov 30, 2021 · 2 comments

Comments

@PanisSupraOmnia
Copy link

PanisSupraOmnia commented Nov 30, 2021

Hi, currently trying to run npx fitbit-build on Node 17 fails with an error because of the following:

const tslibPackage = require('tslib/package.json');
const tslibPath = require.resolve(`tslib/${tslibPackage.module}`);
The issue seems to be with the exports field in tslib's package.json. It doesn't have package.json as a specified export, so you end up with an 'ERR_PACKAGE_PATH_NOT_EXPORTED' error code. Let me know if there's any other useful info I can provide; I'm new to Node so I don't think I can PR a fix unless pointed in the right direction.

@Hexxeh
Copy link
Contributor

Hexxeh commented Dec 6, 2021

It seems this is a breaking change made in Node 17. We haven't had a new toolchain release since Node 17 was released, so I'd suggest using Node 16 (or 14, both LTS) in the meantime.

@PanisSupraOmnia
Copy link
Author

Ok, thanks! When I originally ran into this incompatibility I set up a Docker image for builds, so I'll stick with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants