Questions tagged [css-loader]

Webpack CSS Loaders Extension

The correct way to integrate CSS-Modules into your Nuxt project

Currently, I am utilizing CSS Modules with Nuxt and have encountered some challenges while attempting to import a stylesheet into my JavaScript. Importing the stylesheet directly within the... <style module> @import './index.css'; </style> ...

Issue with webpack failing to detect css-loading module

My application functions properly when using yarn, however, I encounter an issue with loading the CSS when incorporating a benchmarking library called react-benchmark, which utilizes webpack. You can find a minimal example of the entire project here: https ...

Node-modules CSS

In my React application, I am utilizing CSS modules. By configuring modules:true in my webpack.config.js, I can successfully apply styles from files within my src folder. However, when importing components from node-modules, the corresponding CSS is not be ...

Issue with Vue.js webpack encountering problems when importing a CSS file from an external library

I'm in the process of integrating the aos animation library into my testing app. I installed it using yarn add aos, and in my Vue application, I've included the following code: <script> .... import AOS from 'aos/dist/aos.js' import 'aos/dist/aos.cs ...

"When using Webpack and Sass, the background image specified with background: url() is processed correctly. However, when using webpack-dev-server, the image is

Currently, I am utilizing Webpack 2 in conjunction with webpack-dev-server and Sass loader. Here is my current configuration: { test: /.scss/, loaders: [ "style", { loader: "css", query: { modules: false, sourceMap: true } }, ...

The issue with 'exports' causing a CssSyntaxError in the css-loader of finos/perspective-viewer has been resolved

My project is utilizing webpack and perspective-viewer. The css-loader in my project is encountering an error related to 'exports'. I have followed the declaration sequence as outlined in the documentation. However, I am seeking assistance in identifying w ...

Unleashing the power of Sass and CSS in your Next Js project

Trying to incorporate sass and css modules into my next.config.js has been challenging due to an error I keep encountering: Failed to compile. ./node_modules/@riskalyze/react-ui/node_modules/@riskalyze/calendar/assets/index.css Unknown word (1:1) > 1 ...

What is the best way to incorporate CSS into this HTML document?

Content has been omitted. It is crucial to review documentation in advance in order to reduce repetitive inquiries. Check out the Webpack v2 documentation. ...

What is the best way to set `:global` as the default in css-modules within next-js?

Currently, I am incorporating CSS modules into a Next.js project. If we take a look at the following code: // foo.module.(s)css .foo :global { animation-name: bounce; // ... } My question is, is there a way to adjust the Webpack configuration in Ne ...

Error in syntax: The tailwind import statement contains an unrecognized word and will not function correctly

After configuring Tailwind CSS with Next.js, I made changes to the tailwind.config.js file. However, after making these changes, the compilation process failed and resulted in the following error: Error - ./src/assets/styles/global.css:3:1 Syntax error: Un ...

I am unable to utilize folder paths in CSS within my React application

Having trouble setting a background image in CSS within my React app. When styling and setting the image from a React component, it works just fine. Can anyone provide assistance? This code snippet will work: const style={ width:'300px', ...

I encountered an error while using react-create-app: "./src/index.css (./node_modules/react-scripts/node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1"

Recently, I started a project with create-react-app and everything was smooth sailing until this morning. Even the font wasn't causing any issues. Upon running npm start, I encountered the following error message: ./src/index.css (./node_modules/react ...

After updating certain CSS loaders, the `import * as` functionality is no longer working correctly

I have recently updated a number of packages to their latest versions. Below are the details of the upgrades: Package Name Current Version in Project Upgraded Version (Latest Version) mini-css-extract-plugin 0.8.2 2.8.0 postcss-browser-reporter 0. ...

Is there a way to dynamically access BEM-style selectors using CSS modules?

For instance, I have this specific selector in my App.module.css file: .Column--active I want to access this selector from the App.js file in React using CSS modules. After importing all selectors from the CSS file as import styles from './App.modul ...

Is styling in React not showing up?

Currently, I am tackling a third-party pagination component in Reactjs. The npm package instructs me to include the line import "rc-pagination/assets/index.css"; in the file. However, despite injecting the index.css into the DOM using the style loader, I ...