Open ledermann opened 2 years ago
@ledermann Any progress with resolving the issue? I've got the same problems while using vite/4.1.4 darwin-arm64 node-v16.14.2
I haven't tried it since, sorry.
I have the same issue with storybook 7 and vite 4.3.2 main.ts
import { loadConfigFromFile, mergeConfig } from "vite";
import eslint from "vite-plugin-eslint";
const path = require("path");
module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"storybook-addon-mock",
"storybook-dark-mode",
],
framework: {
name: "@storybook/react-vite",
options: {},
},
core: {
builder: "@storybook/builder-vite",
},
features: {
storyStoreV7: false,
},
async viteFinal(config, { configType }) {
const response = await loadConfigFromFile(
path.resolve(__dirname, "../vite.config.ts")
);
return mergeConfig(config, {
...response?.config,
plugins: [
eslint({
exclude: ["**/virtual:/**", "**/node_modules/**"],
}),
],
});
},
};
Someone has any clue of what could be the problem?
@FernetB I would guess you're running into https://github.com/storybookjs/builder-vite/issues/535. It's an issue in vite-plugin-eslint that it does not support virtual files.
What version of
vite
are you using?3.0.9
System info and storybook versions
Describe the Bug
After installing Storybook to a Vite3/Vue3/Rails project, starting StoryBook fails with this message:
It seems it tries to require a file named
@storybook/vue3/dist/esm/client/docs/config
which does not exist in the package.To demonstrate the issue, I created a PR to my repo.
Link to Minimal Reproducible Example
https://github.com/templatus/templatus-vue/pull/1215
Participation