javascript - ReferenceError: Can't find variable: exports -
question:
why getting following error? did forget include script in html?
referenceerror: can't find variable: exports
generated javascript typescript causes it:
"use strict"; object.defineproperty(exports, "__esmodule", { value: true }); /* more code */
extra:
tsconfig.json
{ "compileonsave": true, "compileroptions": { "target": "es5", "noimplicitany": true, "rootdir": ".", "sourceroot": "../../../", "outdir": "../../../js/dist/", "sourcemap": false }, "exclude": [ "node_modules" ] }
requirejs included before js files in html
there similar questions typescript , not ember/babel/etc.
Comments
Post a Comment