Comments (6)
can you try setting your config.outExtension
to "js"
from panda.
can you try setting your
config.outExtension
to "js"
Thanks for the reply.
I have tried your advice.
I added outExtension: 'js'
to panda.config.ts
and still get the same Warning.
CSS content is changed and a warning is output as before when a hot read occurs.
I also removed styled-system
and ran npx panda codegen
again with similar results.
from panda.
sorry to hear that. It looks like a webpack (used by nextjs) specific issue, maybe css-loader has a hard time with CSS @layer
? I'm not sure we can do anything about it
maybe using this ignore comment can help ? https://webpack.js.org/loaders/css-loader/#disable-url-resolving-using-the--webpackignore-true--comment
or maybe opting out of layers could help https://www.npmjs.com/package/@csstools/postcss-cascade-layers
from panda.
sorry to hear that. It looks like a webpack (used by nextjs) specific issue, maybe css-loader has a hard time with CSS
@layer
? I'm not sure we can do anything about itmaybe using this ignore comment can help ? https://webpack.js.org/loaders/css-loader/#disable-url-resolving-using-the--webpackignore-true--comment or maybe opting out of layers could help https://www.npmjs.com/package/@csstools/postcss-cascade-layers
Thanks for the reply.
I added webpackIgnore: true
to global.css.
//src\styles\globals.css
/* webpackIgnore: true */
@layer reset, base, tokens, recipes, utilities;
But there is no change, the Warning is still output.
How to install this.
https://www.npmjs.com/package/@csstools/postcss-cascade-layers
I could not figure out how to configure panda-css with this plugin.
Perhaps not using global.css and putting @layers in config instead?
It would be great if you could show a sample.
from panda.
just pushed this PR which might solve your issue, I'm not sure since I can't test it 😅
I could not figure out how to configure panda-css with this plugin.
like any other postcss plugin, so just installing and adding it here should be enough
module.exports = {
plugins: {
'@pandacss/dev/postcss': {}
+ '@csstools/postcss-cascade-layers': {},
}
}
from panda.
Having the same issue for a fresh project. @csstools/postcss-cascade-layers
doesn't help as well. This warning is so annoying since it runs for every recompiling.
from panda.
Related Issues (20)
- Reducing the burden on type systems HOT 1
- Multi-Theme Tokens not working as expected HOT 2
- Panda CSS default theme not applying HOT 9
- `bleed` pattern not handling CSS custom properties
- Pattern properties with correct naming are not taken into account into custom component HOT 2
- named containers not generated properly HOT 2
- CSS from recipes not applied on web app consuming a package
- PostCSS warning when Panda rules are not injected
- `panda` emitted package poses importing issues HOT 3
- Storybook HMR issues with recipe import HOT 7
- `v-model` doesn't work on styled JSX components (VueJS) HOT 1
- Could not resolve "@pandacss/dev"
- Cannot create a tree-shakeable component library with Panda CSS
- `styled` fn with components using `as` prop
- strictTokens with keywords
- CSS shorthand properties with multiple tokens/values not working HOT 2
- Atomic output order depends on file compilation order, and so is not deterministic
- studio CLI does not parse output directory
- Token validation outputs some error for valid token
- Responsive staticCss not generated when completely overriding presets HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panda.