export default class Scott { let color: string = "blue"; }然而,Webpack4抛出了这个错误: ERROR in ./src/js/test.ts模块解析失败:意外令牌(3:17)您可能需要一个合适的加载器来处理此文件类型。
如果我把" let“改成color =”blue“,
You may need an appropriate loader to handle this file type.错误,尽管我已经将webpack.js配置为使用ts/tsx文件,并且在我将environment-dev.ts错误: "html-webpack-plugin": "^3.2.0",
"husky": "^0.14.3"