赞
踩
问题:
Can't run my Node.js Typescript project TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extensi
解决办法:
Try running ts-node
with the --esm
flag. That fixed the ERR_UNKNOWN_FILE_EXTENSION
error for me. I'm using Node 16.15.1 btw. ex: ts-node --esm myfile.ts
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。