You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Builds previously worked fine with Angular 14, but after upgrading to v15 I get the following runtime error after building and running the app:
Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.
Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)
This does not happen when I serve Storybook during local dev, only when running build-storybook then running with http-server.
To Reproduce
`npx sb@next repro` does not offer Angular 15 as an option.
I did create an Angular 15 app from scratch and installed Storybook, so I can confirm that this bug exists in the most basic configuration.
This appears to be a race condition. If I navigate between the different default stories of a brand new Storybook installation, every other story loads fine.
In Angular 15, polyfills can be included directly in angular.json like "polyfills": ["zone.js"] instead of using separate polyfills.ts. Perhaps there's an issue around this with the @storybook/angular:build-storybook executer?
The text was updated successfully, but these errors were encountered:
Please upgrade your Storybook dependencies from ^6.5.13 to at least ^6.5.14. Let me know if the error still occurs. Also, you could try to use the latest alpha 7.0.0-alpha.58.
Describe the bug
Builds previously worked fine with Angular 14, but after upgrading to v15 I get the following runtime error after building and running the app:
This does not happen when I serve Storybook during local dev, only when running build-storybook then running with http-server.
To Reproduce
System
Additional context
This appears to be a race condition. If I navigate between the different default stories of a brand new Storybook installation, every other story loads fine.
In Angular 15, polyfills can be included directly in angular.json like
"polyfills": ["zone.js"]
instead of using separate polyfills.ts. Perhaps there's an issue around this with the@storybook/angular:build-storybook
executer?The text was updated successfully, but these errors were encountered: