getting-started
getting-started copied to clipboard
when I run 'node --loader ts-node/esm ./ding-dong-bot.ts', it is fine on macOS, but error was thrown on linux
/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