请问老师,interface 是关键字,如何解决?Module parse failed: The keyword
来源:3-4 由浅入深 webpack - 编译 typescript
觅渡qhy
2018-05-06
module.exports={
entry:{
'app':'./src/app.ts'
},
output:{
filename:'[name].bundle.js'
},
module:{
rules:[
{
test:'/\.tsx?$/',
use:{
loader:'ts-loader'
}
}
]
}
}
tsconfig.json
{
"complierOptions":{
"module":"commonjs",
"target":"es5",
"allowJs":true
},
"include":["./src/*"],
"exclude":["./node_module"]
}
写回答
3回答
-
莫问归途何往
2019-06-14
test: /\.tsx?$/, 这个位置没有''(引号)
00 -
慕用5534039
2018-06-08
我也有同样的错误 The keyword 'interface' is reserved, 无法打包
00 -
qbaty
2018-05-07
ts-loader 相关的安装和设置是否和视频一样?
00
相似问题
