i got this error after i upload my main.js which compiled by my typescript files, my tsconfig.json below:
{ "compilerOptions": { "module": "amd", "removeComments": true, "preserveConstEnums": true, "forceConsistentCasingInFileNames": true, "sourceMap": true, "rootDir": "./", "outFile": "./dist/main.js", "baseUrl": "./modules/" } }
there is something like this in js file below:
define("modules/INTERFACES", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); });
then i got Error
ReferenceError: define is not defined at Script Document.
thanks for any advice !