Skip to content

node v20+ 启动服务报错的问题 #12

@ch98196

Description

@ch98196

node 20.x版本在执行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即可

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions