#(0 , platform_browser_1.bootstrapApplication) is not a function

5 messages · Page 1 of 1 (latest)

fathom garnet
#

I just upgraded from SB 6.5 -> 7.0 today. I only used MDX files, which I fixed all of them to match MDX2 format. Now when I launch the storybook instance in the browser all of the stories are rendered with the same error:

TypeError: (0 , platform_browser_1.bootstrapApplication) is not a function
    at http://localhost:4400/vendors-node_modules_angular-devkit_build-angular_node_modules_core-js_proposals_reflect-meta-8f311b.iframe.bundle.js:71727:80
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (http://localhost:4400/vendors-node_modules_angular-devkit_build-angular_node_modules_core-js_proposals_reflect-meta-8f311b.iframe.bundle.js:109467:24)
    at _next (http://localhost:4400/vendors-node_modules_angular-devkit_build-angular_node_modules_core-js_proposals_reflect-meta-8f311b.iframe.bundle.js:109489:9)
    at push../node_modules/zone.js/dist/zone.js._ZoneDelegate.invoke (http://localhost:4400/vendors-node_modules_angular-devkit_build-angular_node_modules_core-js_proposals_reflect-meta-8f311b.iframe.bundle.js:106342:30)
    at push../node_modules/zone.js/dist/zone.js.Zone.run (http://localhost:4400/vendors-node_modules_angular-devkit_build-angular_node_modules_core-js_proposals_reflect-meta-8f311b.iframe.bundle.js:106102:47)
    at http://localhost:4400/vendors-node_modules_angular-devkit_build-angular_node_modules_core-js_proposals_reflect-meta-8f311b.iframe.bundle.js:107259:38
    at push../node_modules/zone.js/dist/zone.js._ZoneDelegate.invokeTask (http://localhost:4400/vendors-node_modules_angular-devkit_build-angular_node_modules_core-js_proposals_reflect-meta-8f311b.iframe.bundle.js:106376:35)
    at push../node_modules/zone.js/dist/zone.js.Zone.runTask (http://localhost:4400/vendors-node_modules_angular-devkit_build-angular_node_modules_core-js_proposals_reflect-meta-8f311b.iframe.bundle.js:106147:51)
    at drainMicroTaskQueue (http://localhost:4400/vendors-node_modules_angular-devkit_build-angular_node_modules_core-js_proposals_reflect-meta-8f311b.iframe.bundle.js:106565:39)

I didn't see any open issues om GH for this. I ran the migration steps here:
https://storybook.js.org/docs/angular/migration-guide

Any help would be greatly appreciated!

Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. It’s open source and free.

fathom garnet
#

Any help on this? I can provide whatever additional information.

dreamy dove
#

What is your Angular version? I am not sure, but it seems like @angular/platform-browser may be an older version that doesn't have bootstrapApplication. I am just guessing though. Could you provide a repro?

dreamy dove
#

I think bootstrapApplication was added in Angular 14. Storybook 7's dependencies for Angular are ">=14.1.0 < 17.0.0". https://github.com/storybookjs/storybook/blob/3e32fc62fdb93c78bb5c4ee5ce76a10d1b4cb7b6/code/frameworks/angular/package.json#LL102C34-L102C53

GitHub

Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation. - storybook/package.json at 3e32fc62fdb93c78bb5c4ee5ce76a10...