We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Steps:
pnpx create-vite pigment
pnpm add @pigment-css/react
@pigment-css/vite-plugin
pigment({})
import '@pigment-css/react/styles.css'
main.tsx
pnpm run dev
import { styled } from '@pigment-css/react' export const Container = styled('div')` background: blue; ` function App() { return <Container>App</Container> } export default App
Observe the following error
Currently the project throws an error requested module does not provide an export named 'default'
Should see a blue square
I am trying to add pigment to my vite project
npx @mui/envinfo
Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here.
Search keywords: vite
The text was updated successfully, but these errors were encountered:
I ran into this yesterday as well. I followed the recommendation in this issue and was able to resolve that error: #176
But still not able to get the Pigment styles to work in Vite because of: #343
Sorry, something went wrong.
I'm still running v5 of vite. But when I had the same error. This resolved it for me (in vite config):
optimizeDeps: { include: ['prop-types', 'react-is', 'hoist-non-react-statics', 'html-react-parser'], }
I have more deps, because as for my use case. As soon as I resolved 1, another error followed. So depending on your use case...
siriwatknp
No branches or pull requests
Steps to reproduce
Steps:
pnpx create-vite pigment
(Currently build 6.0.2, but I also tried vite versions 5.1.8 and 5.0.0)pnpm add @pigment-css/react
and@pigment-css/vite-plugin
pigment({})
pluginimport '@pigment-css/react/styles.css'
tomain.tsx
pnpm run dev
the project will runObserve the following error
Current behavior
Currently the project throws an error requested module does not provide an export named 'default'
Expected behavior
Should see a blue square
Context
I am trying to add pigment to my vite project
Your environment
npx @mui/envinfo
Search keywords: vite
The text was updated successfully, but these errors were encountered: