Can't get started with @vanilla-extract/css on a basic Hello World #1136
Unanswered
kyplerdeloitte
asked this question in
Q&A
Replies: 1 comment
-
The integration depends your setup, e.g. the Vite plugin will not work for your create-react-app setup. CRA is dead anyway, so I recommend that you create a new project with Vite or Next and use the official plugins. If you really want to keep create-react-app, follow the instructions described here: https://sandroroth.com/blog/vanilla-extract-cra |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am unable to assign the styles (background: red) I created with "import {styles} from vanilla-extract/css" to a simple div with the text "Hello World". I tried using different bundler integrations (vite, webpack, gatsby and bagel) but I keep getting this same error:
This is the repo
https://github.com/kyplerdeloitte/hello-world
Beta Was this translation helpful? Give feedback.
All reactions