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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -