rhodee / razzle-plugin-postcss Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
After updating to 3.1.3, CSS modules is not recognizing the variables anymore. I am using razzle-plugin-postcss.
Server shows error:
You did not set any plugins, parser, or stringifier. Right now, PostCSS does nothing. Pick plugins for your case on https://www.postcss.parts/ and use them in postcss.config.js.
And client shows that it cannot read the variables with errors like
TypeError: Cannot read property 'main-bg' of undefined
CSS modules variables work properly, and can be used within different files. This worked in Razzle <3.1.3. It can be tested by changing the version in the example, the errors are gone and the app works properly.
https://github.com/SuperIRis/test-razzle
Not completely sure why this is happening or how to fix it.
Software | Version(s) |
---|---|
Razzle | 3.1.3 |
Razzle Plugins | razzle-plugin-postcss |
Node | v12.16.1 |
Browser | Chrome 81.0.4044.138 |
npm/Yarn | 6.13.4 |
Operating System | MacOS 10.14.6 |
React | 16.13.1 |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.