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

Closed
ziimakc opened this issue Oct 14, 2024 · 2 comments
Closed

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

ziimakc opened this issue Oct 14, 2024 · 2 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
@kube
Copy link

kube commented Oct 20, 2024

This is the same issue as: vanilla-extract-css/vanilla-extract#1311

Except that now, the Plugin is named react-router instead of remix.

@kube
Copy link

kube commented Oct 21, 2024

I created a PR to address this issue: vanilla-extract-css/vanilla-extract#1492

@ziimakc ziimakc closed this as completed Oct 21, 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

2 participants