Cannot read property 'a' of undefined
TypeError: Cannot read property 'a' of undefined
at Routes.index (/home/huo/zmwork/yuedun_ts/build/routes/index.js:13:44)
……
tsconfig.json配置:
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"noImplicitAny": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"experimentalDecorators": true,
"noEmitOnError": true,
"removeComments": true,
"allowUnreachableCode": true,
"noImplicitUseStrict": true,
"diagnostics":false,
"pretty": true,
"sourceRoot": "./",
"rootDir": "./",
"outDir": "./build",
"mapRoot": "./build",
"sourceMap": true
},
"include": [
"./**/*.ts"
]
}
生成的map文件:
{"version":3,"file":"index.js","sourceRoot":"/home/huo/zmwork/yuedun_ts/","sources":["routes/index.ts"],"names":[],"mappings":";;;;;;
该配置的都配置了,可以断点调试,但是报错文件却是js文件
https://segmentfault.com/a/11...