-
Notifications
You must be signed in to change notification settings - Fork 285
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
fix: custom-checks script from package.json does not work #1809
Comments
@Leeyoungone can you provide the steps to replicate this? Thank you. |
@zondervancalvez You can do |
Hello @petermetz , can you assign this ticket to me? Thank you. |
@petermetz As for this issue, the first solution that I have found that results to a non-error one, is reverting back to older node version. (https://stackoverflow.com/questions/63807613/running-node-with-loader-ts-node-esm-js-requires-imports-to-have-the-js-extensi) I also tried adding "type": "module" and changing "module": "ESNext" into "module": "commonjs" but the result is still an error. (egoist/esbuild-register#22) (TypeStrong/ts-node#1522) However, v16.11.0 resulted to a success. The closest to v16.13.0 that is a success custom-checks. Is it possible to bump down the node version from v16.13.1 to v16.11.0 ? Thank you. |
@ruzell22 Could you please double check if this works with Node 16.13.1 or newer? https://github.com/TypeStrong/ts-node/tree/main/esm-usage-example |
@ruzell22 I took a stab at it just now and managed to get it to work with (seemingly) all v16.. versions by upgrading the Make sure to
|
…-cacti#1809 fixes: hyperledger-cacti#1809 Signed-off-by: ruzell22 <ruzell.vince.aquino@accenture.com>
…-cacti#1809 fixes: hyperledger-cacti#1809 Signed-off-by: ruzell22 <ruzell.vince.aquino@accenture.com>
fixes: #1809 Signed-off-by: ruzell22 <ruzell.vince.aquino@accenture.com>
…-cacti#1809 fixes: hyperledger-cacti#1809 Signed-off-by: ruzell22 <ruzell.vince.aquino@accenture.com>
Description
Running
yarn custom-checks
returns an error:The text was updated successfully, but these errors were encountered: