-
Notifications
You must be signed in to change notification settings - Fork 84
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
Ladle seems to conflict with remix vite plugin #559
Comments
Any insights what that plugin is doing internally? |
Can confirm, I solved it by adding a specific ladle vite config without the In Use it then with: Would love to solve the issue, this is more a work around. |
Seems like Remix are aware of the issue, see here. For now I just follow the Storybook way by exclude the remix plugin if I'm running the ladle CLI const isLadle = process.argv[1]?.includes("ladle");
export default defineConfig({
server: {
port: 8081
},
// https://remix.run/docs/en/main/future/vite#plugin-usage-with-other-vite-based-tools-eg-vitest-storybook
// refer to the link above to understand why we use process.env.VITEST or isLadle
plugins: [
!isLadle && remix(remixConfig),
... |
I guess this is not something we can fix on our side. People should follow their advice of excluding it for now as @andychongyz suggests. |
Describe the bug
Ladle fails to start with the following error message when remix is in the vite.config:
Reproduction
See https://stackblitz.com/edit/ladle-xmfkzx?file=vite.config.ts
Environment
The text was updated successfully, but these errors were encountered: