Skip to content

Cannot read property '.css' of undefined #97

Open
@agungsb

Description

@agungsb

Hi, I got the following error when using this plugin:

..\node_modules\css-modules-require-hook\lib\attachHook.js:10 Uncaught TypeError: Cannot read property '.css' of undefined

My usage:

const hook = require('css-modules-require-hook');
hook({
    // the custom template for the generic classes
    extensions: ['.css'],
    generateScopedName: '[name]__[local]___[hash:base64:5]',
    camelCase: true
});
import styles from './CircularProgressButton.css';

For your additional information, I'm using Webpack 3 and Babel 6. The project is using the ejected Create React App (CRA).

Any thoughts of how to solve this? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions