This is what I get when I try to run webpack: the error I get is:     "ERROR in ./v3/app/styles/main.scss   Module parse failed: /Users/vovina/widget-login-react/v3/app/styles/main.scss Unexpected character '@' (1:0)   You may need an app...
I'm learning how to use css modules with react, below is a working example of a checkbox here's what it looks like (pure HTML + CSS fiddle) without react.  import React from 'react' import CSSModules from 'react-css-modules' i...
I am trying to create a stateless component in React with the sole purpose of acting as a reusable wrapper. I am also using CSS Modules because I want to have fully modular CSS.  The thing is I don't want to add unnecessary elements (and even mor...
I'm using CSS Modules within a React application. I also have a dropdown component with some global styles (which I'm happy with, as the general styles I want to re-use).  When the dropdown is active, a CSS class is applied (.dropdown--active...
I am using CSS Modules in an Angular Project with Webpack. I had already transformed the class names in .css and .scss files with postcss-modules.  Then with posthtml-css-modules I had changed the values on the class property in html elements for his...
I have a custom modal where I have 2 react-select components inside. The modal body is ready to auto scroll in case the content exceeds its size, but the react-select components dropdown open inside the modal with this overflow, which is what i am no...
I'm using React with SASS and CSS Modules. How can I style the children component without passing a new ClassName or something like that. For Ex.  I want to position or do some styles over the child components, without having to give a specific c...
I am locally scoping my css files by using   modules: true, localIdentName: "[name]__[local]_[hash:base64:5]"   in webpack.config.dev and prod.js. I am able to use the styles i have defined for the components using import style from './Co...
I am using Jest and Enzyme to test my application. I am getting error:   FAIL  app/containers/Navbar/NavbarContainer.test.js   ? Test suite failed to run      app/components/Navbar/styles.css: Unexpected token (1:0)       > 1 | @import "../../...
I need to configure next.config.js file in order to use in the same time two different loaders. This is the first:  const withSass = require('@zeit/next-sass');  module.exports = withSass({     cssModules: true,     cssLoaderOptions: {...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.