Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Cannot read property '.css' of undefined #23

Open
JakobJingleheimer opened this issue Feb 15, 2018 · 2 comments
Open

Cannot read property '.css' of undefined #23

JakobJingleheimer opened this issue Feb 15, 2018 · 2 comments

Comments

@JakobJingleheimer
Copy link

JakobJingleheimer commented Feb 15, 2018

I have require('ignore-styles') in my karma config (an entry file), and ignore-styles is throwing the following error:

Uncaught TypeError: Cannot read property '.css' of undefined
  at webpack:///…/node_modules/ignore-styles/lib/ignore-styles.js:45:0

ignore-styles.js#L45:

    oldHandlers[ext] = require.extensions[ext];

I also tried adding --require ignore-styles to the mocha command, but it did nothing.

Also, it would be great if the readme said where to put the code.

@dingquantracy
Copy link

it seems that, the node new version has removed require.extensions

@bkonkle
Copy link
Owner

bkonkle commented May 21, 2018

Hi! Sorry for the delay on this! I'm planning to clean up pull requests in my open source projects this week, after losing track during a job transition. 😅 Thanks for your patience!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants