【发布时间】:2017-01-17 12:42:47
【问题描述】:
我正在使用gulp、browserify 和tsify 来捆绑我的应用程序,并且我将browserify 指向main.ts 文件。这就是我捆绑应用程序所做的一切。但是,当我尝试运行已导入捆绑 js 文件的 index.html 文件时,我收到错误:this._nativeError is undefined 出现空白屏幕。
我的tsconfig.json:
{
"compileOnSave": false,
"compilerOptions": {
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"moduleResolution": "node",
"outDir": "../dist/out-tsc-e2e",
"sourceMap": true,
"target": "es5",
"typeRoots": [
"../node_modules/@types"
]
}
}
我的吞咽任务:
【问题讨论】:
-
你使用的是哪个版本的
zonejs? -
区域版本为 0.7.5
-
降级到 0.7.4 7.5 中有一个 bug github.com/angular/zone.js/issues/595
-
我会检查的。但是,该应用程序在开发模式下运行良好,我使用 angular-cli 提供服务。
-
不看真实代码就很难判断
标签: angular gulp browserify tsify