prettycron icon indicating copy to clipboard operation
prettycron copied to clipboard

create-react-app & webpack error with later.js

Open hughmp opened this issue 7 years ago • 1 comments

When using create-react-app I get the following error at compile time:

Module not found: Can't resolve './later-cov' in 'C:\node_modules\later'

This can be temporarily resolved by changing line 26 from this:

var later = require('later');

to this:

var later = require('later/later.js');

This doesn't actually work with the latest version of webpack, I had to fork prettycron and later similar to @RickCarlino here https://github.com/bunkat/later/issues/155#issuecomment-280387784

hughmp avatar Aug 10 '17 09:08 hughmp

There's now a maintained fork of the later library, which the original version even refers you to on npm. See the deprecation message here: https://www.npmjs.com/package/later

Maybe someone could fork this to use the forked later library?

neodescis avatar Jun 07 '21 18:06 neodescis