wallabyjs / ngCliWebpackSample

68 stars 48 forks source link

AOT compilation broken due to wallabyTest.ts #9

Closed peteralbert closed 7 years ago

peteralbert commented 7 years ago

ng serve -aot results in the following error:

ERROR in Error encountered resolving symbol values statically. Calling function 'NoOpAnimationDriver', function calls are not suppo
rted. Consider replacing the function or lambda with a reference to an exported function, resolving symbol AnimationDriver.NOOP in
.../node_modules/@angular/platform-browser/src/dom/animation_driver.d.ts, resolving sy
mbol BrowserTestingModule in .../node_modules/@angular/platform-browser/testing/browse
r.d.ts, resolving symbol BrowserTestingModule in .../node_modules/@angular/platform-br
owser/testing/browser.d.ts

Excluding wallabyTest.ts in tsconfig.json solves the problem:

  "exclude": [
    "wallabyTest.ts"
  ]

Fix here: #8

See more details on the issue: angular/angular#13624.

ArtemGovorov commented 7 years ago

Awesome, thanks!