We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 20.x版本在执行npm start时出现报错信息
npm start
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for {PATH}\dingtalk-stream-sdk-nodejs-2.1.4\example\index.ts
在package.json中的scripts.start值改为node --loader ts-node/esm example/index.ts即可
package.json
scripts.start
node --loader ts-node/esm example/index.ts
The text was updated successfully, but these errors were encountered:
另需要在tsconfig.json中将compilerOptions.module和compilerOptions.moduleResolution修改为NodeNext
tsconfig.json
compilerOptions.module
compilerOptions.moduleResolution
NodeNext
Sorry, something went wrong.
No branches or pull requests
node 20.x版本在执行
npm start
时出现报错信息在
package.json
中的scripts.start
值改为node --loader ts-node/esm example/index.ts
即可The text was updated successfully, but these errors were encountered: