webpack/css-loader

import styles from './index.css' undefined

Closed this issue · 1 comments

Bug report

import styles from './index.css' 
styles is undefined

Actual Behavior

css-loader:v7.x

Expected Behavior

How Do We Reproduce?

Please paste the results of npx webpack-cli info here, and mention other relevant information

please read migration guide - https://github.com/webpack-contrib/css-loader/releases/tag/v7.0.0, use import * as styles from './index.css'