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 -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -