I’m trying to import some extension to progect written in Typescript. (app based on Angular 6)
But compliler throws me an error and suggest to write you.
Right now our extensionsTS folder is set up to build UMD modules, and I think you want to import as an ES6 module for it to work with your TypeScript project.
The easiest way to fix this is to delete the .js files from the extensionsTS directory, and change the tsconfig.json file to use ES6 modules instead of UMD modules:
// files with `.ts` or `.tsx` extension will be handled by `ts-loader`
{ test: /\.tsx?$/,
loader: 'ts-loader',
options: {
// We want to override the tsconfig file currently in:
// vue-webpack\node_modules\gojs\extensionsTS
// Because it uses ES5 + umd modules and we want to use ES6 + ES6.
compilerOptions: {
"module": "ES6",
"target": "ES6",
"noImplicitAny": true
}
}
},
GoJs is dependancy in my project, I can’t change it locally. I am able to add this to deploy process but it looks like raw solution. Angular is one of the most popular framework and Extensions are powerfull features. Tell me please Are you going to make using Extensions in Angular easier?