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

when I run 'node --loader ts-node/esm ./ding-dong-bot.ts', it is fine on macOS, but error was thrown on linux #278

Open
RockyGua opened this issue Nov 6, 2022 · 0 comments

Comments

@RockyGua
Copy link

RockyGua commented Nov 6, 2022

/root/wechaty-getting-started/ding-dong-bot/node_modules/ts-node/src/transpilers/swc.ts:262
throw new Error(
^
Error: @swc/core threw an error when attempting to validate swc compiler options.
You may be using an old version of swc which does not support the options used by ts-node.
Try upgrading to the latest version of swc.
Error message from swc:
undefined
at createVariant (/root/wechaty-getting-started/ding-dong-bot/node_modules/ts-node/src/transpilers/swc.ts:262:13)
at createSwcOptions (/root/wechaty-getting-started/ding-dong-bot/node_modules/ts-node/src/transpilers/swc.ts:211:25)
at create (/root/wechaty-getting-started/ding-dong-bot/node_modules/ts-node/src/transpilers/swc.ts:56:41)
at createTranspiler (/root/wechaty-getting-started/ding-dong-bot/node_modules/ts-node/src/index.ts:784:16)
at createTranspileOnlyGetOutputFunction (/root/wechaty-getting-started/ding-dong-bot/node_modules/ts-node/src/index.ts:1341:28)
at createFromPreloadedConfig (/root/wechaty-getting-started/ding-dong-bot/node_modules/ts-node/src/index.ts:1404:34)
at create (/root/wechaty-getting-started/ding-dong-bot/node_modules/ts-node/src/index.ts:624:10)
at register (/root/wechaty-getting-started/ding-dong-bot/node_modules/ts-node/src/index.ts:591:15)
at Object.registerAndCreateEsmHooks (/root/wechaty-getting-started/ding-dong-bot/node_modules/ts-node/src/esm.ts:116:34)
at file:///root/wechaty-getting-started/ding-dong-bot/node_modules/ts-node/esm.mjs:8:7

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

1 participant