Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Getting an error "Can't resolve 'os'" #238

Open
@dagumak

Description

@dagumak

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

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp