Skip to content
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

[Bug]: v7pre vanilla-extract/vite-plugin #12128

Open
ziimakc opened this issue Oct 14, 2024 · 0 comments
Open

[Bug]: v7pre vanilla-extract/vite-plugin #12128

ziimakc opened this issue Oct 14, 2024 · 0 comments
Labels

Comments

@ziimakc
Copy link

ziimakc commented Oct 14, 2024

What version of React Router are you using?

v7pre1

Steps to Reproduce

import { reactRouter } from "@react-router/dev/vite";
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
import { defineConfig } from "vite";

export default defineConfig(() => {
	return {
		plugins: [reactRouter(), vanillaExtractPlugin()],
	};
});
  • Run npm add @vanilla-extract/css @vanilla-extract/vite-plugin
  • Add @vanilla-extract/vite-plugin to config
  • Run in dev mode or build

Expected Behavior

No error

Actual Behavior

Error: The React Router Vite plugin requires the use of a Vite config file

@ziimakc ziimakc added the bug label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant