I am using gulp
, browserify
and tsify
to bundle my application and I am pointing browserify to the main.ts
file. That is all I am doing to bundle the app. But when I try to run the index.html
file which has the bundled js file imported, I get the error: this._nativeError is undefined
with a blank screen.
My 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"
]
}
}
My gulp task: