- Notifications
You must be signed in to change notification settings - Fork198
Open
Description
I am using nodev16.13.0
and Gatsby. This is what happens after I install parallel.js and imported it in my code. I am not really sure what the issue is.
importParallelfrom'paralleljs';constp=newParallel([0,1,2,3,4,5,6]);constlog=function(){console.log(arguments);};
ERROR#98124 WEBPACKGenerating development JavaScript bundle failedCan't resolve'os' in'/Users/hello/projects/example/yoyo/app/node_modules/paralleljs/lib'If you're trying to use a package make sure that'os' is installed. If you're trying to use a local file make sure that the path is correct.BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.This is no longer the case. Verify if you need this module and configure a polyfill for it.If you want to include a polyfill, you need to:- add a fallback'resolve.fallback: {"os": require.resolve("os-browserify/browser") }'- install'os-browserify'If you don't want to include a polyfill, you can use an empty module like this:resolve.fallback: {"os":false }File: node_modules/paralleljs/lib/parallel.js:81:8
Metadata
Metadata
Assignees
Labels
No labels