Hi, we are trying DayPilot in our Ionic project and we are happy to see that you recently published a release supporting AOT compilation. Sadly when trying to compile DayPilot, we face an error:
[00:52:48] ngc started ...
Failed to read JSON file /var/lib/jenkins/jobs/.../workspace/src/node_modules/daypilot-pro-angular/daypilot-angular.min.metadata.json
[00:52:51] build prod failed: Unexpected token in JSON at position 0
[00:52:51] ionic-app-script task: "build"
[00:52:51] SyntaxError: Unexpected token in JSON at position 0
SyntaxError: Unexpected token in JSON at position 0
at JSON.parse (<anonymous>)
at CompilerHost.readMetadata (/var/lib/jenkins/jobs/.../workspace/src/node_modules/@angular/compiler-cli/src/compiler_host.js:189:44)
at CompilerHost.getMetadataFor (/var/lib/jenkins/jobs/.../workspace/src/node_modules/@angular/compiler-cli/src/compiler_host.js:168:29)
at StaticSymbolResolver.getModuleMetadata (/var/lib/jenkins/jobs/.../workspace/src/node_modules/@angular/compiler/bundles/compiler.umd.js:26228:66)
at StaticSymbolResolver._createSymbolsOf (/var/lib/jenkins/jobs/.../workspace/src/node_modules/@angular/compiler/bundles/compiler.umd.js:26089:50)
at StaticSymbolResolver.getSymbolsOf (/var/lib/jenkins/jobs/.../workspace/src/node_modules/@angular/compiler/bundles/compiler.umd.js:26070:18)
at /var/lib/jenkins/jobs/.../workspace/src/node_modules/@angular/compiler/bundles/compiler.umd.js:25026:34
at Array.forEach (native)
at extractProgramSymbols (/var/lib/jenkins/jobs/.../workspace/src/node_modules/@angular/compiler/bundles/compiler.umd.js:25025:83)
at AotCompiler.compileAll (/var/lib/jenkins/jobs.../workspace/src/node_modules/@angular/compiler/bundles/compiler.umd.js:24671:51)
I'm not sure but it could some characters not correctly escaped that make failing JSON.parse().
We are using the build 8.3.2772