Giter Site home page Giter Site logo

razzle-plugin-postcss's People

Contributors

rhodee avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

theopolisme

razzle-plugin-postcss's Issues

Plugin doesn't work with Razzle 3.1.3

๐Ÿ› Bug report

Current Behavior

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

Expected behavior

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.

Reproducible example

https://github.com/SuperIRis/test-razzle

Suggested solution(s)

Not completely sure why this is happening or how to fix it.

Your environment

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.