Hi,
I'm trying to get AOT working on my project but am facing the following error with Rollup :
Export 'TextMaskModule' is not defined by '/path-to-project/aot/app/app.module.ngfactory.js'
'TextMaskModule' is not exported by node_modules/angular2-text-mask/dist/angular2TextMask.js (imported by app/app.module.js).
The script I'm doing is : ngc -p tsconfig-aot.json && rollup -c rollup-config.js
The ngc part works but when rollup doesn't like something...
angular2-text-mask version : 2.0.0
text-mask-core : 0.16.4
Note that the plugin is perfectly working without AOT.
My rollup config :
import rollup from 'rollup'
import nodeResolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs';
import uglify from 'rollup-plugin-uglify'
//paths are relative to the execution path
export default {
entry: 'app/main-aot.js',
dest: 'aot/dist/build.js', // output a single application bundle
sourceMap: true,
sourceMapFile: 'aot/dist/build.js.map',
format: 'iife',
plugins: [
nodeResolve({jsnext: true, module: true}),
commonjs({
include: ['node_modules/rxjs/**']
}),
uglify()
]
}
Thanks for your help !
Hi,
I'm trying to get AOT working on my project but am facing the following error with Rollup :
Export
'TextMaskModule' is not defined by '/path-to-project/aot/app/app.module.ngfactory.js''TextMaskModule' is not exported by node_modules/angular2-text-mask/dist/angular2TextMask.js (imported by app/app.module.js).The script I'm doing is :
ngc -p tsconfig-aot.json && rollup -c rollup-config.jsThe ngc part works but when rollup doesn't like something...
angular2-text-mask version : 2.0.0
text-mask-core : 0.16.4
Note that the plugin is perfectly working without AOT.
My rollup config :
Thanks for your help !