Monthly Archives: November 2016

VM54310:600 Uncaught TypeError: _XXXXX2.default is not a constructor

Problem VM54310:600 Uncaught TypeError: _XXXXX2.default is not a constructor Solution need to export default class e.g.: export default class StateController { …         keywords: typescript VM54310:600 Uncaught TypeError: _XXXXX2.default is not a constructor ts js webpack    

Posted in Uncategorized | Leave a comment

Gradual Migration from JavaScript to TypeScript

Task You have an existing project in which you’d like to use TypeScript. Solution Simply remove the outDir from tsconfig.json, e.g.: { “compilerOptions”: { “allowJs”: false, “outDir”: “./tsDist/”, “module”: “es6”, “target”: “es6”, “experimentalDecorators”: true, “moduleResolution”: “node” }, “exclude”: [ “node_modules”, “tsDist”, … Continue reading

Posted in Uncategorized | Leave a comment