-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build-storybook: Failed to resolve module specifier "vue" #32
Comments
hi @peteromano please try to use the latest version |
@chakAs3 will try as soon as i can, thanks! BTW, is there a discord we can join to collab? |
Ok, the versioning was confusing.. I was 0.0.1-rc.29, now on -beta.21, which solves alot of my issues, however, this issue is still happening My command (i have to run nuxt build after SB, so it adds public/storybook to .output):
|
This week, we switch to this plugin for better plugin support (e.g. i18n) and this finally worked well. But today we actually build the storybook via (local, chromatic and netlify) and all places raise the same error like above. We are running on the latest version: as well since your MR in the @storybook/vue3 was merged today, I switch to those versions as well: @chakAs3 have you some ideas what could cause this error? The error in the console is:
The actual storybook build command runs well, but if you open the static version the error appears.
|
Hi @th1nkgr33n please use the latest version of @storybook-vue/nuxt. it will be ok refactor your code
|
you can find me on Storybook Discord. chak-As3 |
@chakAs3 thanks for the response. Do you need further information to investigate? By the way.. whats the difference between "@storybook-vue/nuxt" and "@storybook-nuxt/framework". |
yes exactly i'm just trying name spaces not sure with what i will go .
i released 0.0.3. yesterday you can try cli as well |
Ah I haven't seen the 0.0.3 release tag in GitHub thats why I thought the beta.22 was latest. I'm not familiar with the process of distributing npm packages under namespaces. THanks. Unfortunately with 0.0.3 it didn't work as well. (Cleared node_modules and cache) |
@th1nkgr33n can share your repo it should work, i ll take a look |
@chakAs3 FYI, this is still an issue -- would be FANTASTIC to get this working :) |
Yeah @peteromano i will Fantastic for many Nuxt devs, i'm finalizing the module this weekend and this Monday i will give live demo in Storybook Discord Channel, if you are interested. it will be great to get your feedback there, and set a roadmap |
|
@simkuns will try this ASAP. The latter 2 solutions you mention should come from this repo, though, right? (or I guess I could add solution 2 to sb main vite config) THANK YOU very much for the help on this! |
@peteromano Yes, the latter 2 solutions mentioned should come from this repo. You can try upgrading to |
there is new release 0.1.3 |
This case is for adding production SB build to Nuxt production build as a subroute (mydomain.com/storybook).
NOTE: In previous attempts to integrate Nuxt w/ SB, I've had this working (using unplugin- method and storybook-nuxt-addon method.)
After building for production, I'm getting this error at runtime (build is successful):
TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".
Seems to be just a relative path issue maybe.
Build command:
pnpm build-storybook -o public/storybook --disable-telemetry && nuxt build
Here's relevant config:
Btw, another issue: the SB build hangs and never actually gets to
&& nuxt build
.. Likely, because nothing closes the vite/nuxt severs after build, so process never ends?The text was updated successfully, but these errors were encountered: