@rapropos thanks for that link. I hadn’t followed the above, (didn’t know about that) but have now. So now ionic serve runs fine, and if I build without the --prod
flag it builds, but unfortunately as soon as I use the --prod
I still get exactly the same error " build prod failed" as above. Perhaps there is something else I am missing. Perhaps the Ionic cli version? (I have 2.2.1).
I deleted my node_modules and did a fresh npm install
, but didn’t make any difference.
Seems to be all about the NoOpAnimationDriver
. There is a discussion on that here, so I tried adding the exclude test.ts
and other option mentioned there…
"exclude": [
"node_modules",
"src/**/*.spec.ts",
"test.ts"
],
"angularCompilerOptions": { "genDir": "i18n" },
…but unfortunately this hasn’t helped. My test.ts
comes from installing everything mentioned in this tutorial, but perhaps this issue has nothing to do with my test.ts
The contents of the file animation_driver.d.ts
mentioned in the error include
/**
* @experimental
*/
export declare abstract class AnimationDriver {
static NOOP: AnimationDriver;
abstract animate(element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number, easing: string, previousPlayers?: AnimationPlayer[]): AnimationPlayer;
}
Something to do with the line static NOOP: AnimationDrive
?
Not sure what could be causing this.