ReferenceError: cannot find variable: export

Question:

Why am I getting the following error? I forgot to include the script in my html?

ReferenceError: cannot find variable: export

Created javascript from typescript that calls it:

"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /* more code */ 

Additionally:

tsconfig.json

 { "compileOnSave": true, "compilerOptions": { "target": "es5", "noImplicitAny": true, "rootDir": ".", "sourceRoot": "../../../", "outDir": "../../../js/dist/", "sourceMap": false }, "exclude": [ "node_modules" ] } 

requirejs is included in front of my js files in html

There are similar questions, but it's just about typescript, not ember / babel / etc.

+5
source share

Source: https://habr.com/ru/post/1266469/


All Articles