storybook-vue / storybook-nuxt

Deprecated in favor of https://github.com/nuxt-modules/storybook/
https://github.com/nuxt-modules/storybook/
132 stars 20 forks source link

Windows - "pnpm storybook" leads to Error: Invariant failed: No builder configured in core.builder #61

Closed Pecral closed 1 year ago

Pecral commented 1 year ago

Problems

Clean https://github.com/storybook-vue/storybook-nuxt-starter master image Updating "@storybook-vue/nuxt" to 0.1.0-rc.8: image

How to reproduce

Steps:

The problem was reproducible on two different windows 10 machines. On MacOs/Linux the issue does not occur.

Repository with "@storybook-vue/nuxt" to 0.1.0-rc.8: can be found here https://github.com/Pecral/storybook-nuxt-starter-no-builder-configured

johnggreen commented 1 year ago

Same errors here on Windows 11, running on Nodejs LTS and was able to run it fine on WSL (Ubuntu) same Nodejs LTS. For Wi ndows, I manually tried to add the below to my main.ts

core: { 
    builder: "@storybook/builder-vite",
  }

This got around the no builder found, however launched storybook with errors such as Expected your framework's preset to export a `renderToCanvas` field..

Also tried a demo that chakAs3 made at https://github.com/chakAs3/nuxt-storybook-module-demo which also reproduces the issue.