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

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -