-
Notifications
You must be signed in to change notification settings - Fork 106
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
404 - Storybook cannot find components #169
Comments
It looks like your diff --git a/.storybook/main.js b/.storybook/main.js
index f388ad7..6a16dfb 100644
--- a/.storybook/main.js
+++ b/.storybook/main.js
@@ -33,7 +33,14 @@ module.exports = {
return mergeConfig(previousConfig, {
...config,
- plugins: [vue(), vueI18n(), eslintPlugin()],
+ plugins: [
+ vueI18n({
+ include: path.resolve(__dirname, "../src/locales/**"),
+ compositionOnly: false,
+ runtimeOnly: false,
+ }),
+ eslintPlugin()
+ ],
});
},
}; When I make that change, storybook builds correctly. Let me know if you still have any issues though. |
@IanVS Thanks for the help, the issue left here is that I cannot build. Were you able to run
I see this issue appearing at vuejs/core#1033 (comment) Thanks in advance! |
I was able to successfully |
@IanVS do you think it's related to this storybookjs/storybook#16630? |
It does look like that's what you're hitting. I don't think another issue would help, since there's already a PR open. It's probably best to give it a little time, or try to find a workaround to remove the types or ignore the errors for now until it is fixed. |
Description
Dev server works with the exact same config but Storybook seems to struggle.
Strange log as I don't use JSX or TSX
and the browser console logs 404
To Reproduce
Please create a reproduction by running
yarn && yarn storybook
Repo can be found at https://github.com/Miguel-Bento-Github/vite-vue-ts-storybook
Environment Info:
Help is appreciated in advance.
The text was updated successfully, but these errors were encountered: