Skip to content

[WARN]: Getting warning related to worker_threads while building rrweb with react app  #1178

@njindal1501

Description

@njindal1501

Preflight Checklist

  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.

What package is this bug report for?

rrweb

Version

2.0.0-alpha.4

Expected Behavior

Should not get any warning while building create-react-app with rrweb.

Actual Behavior

Getting warning when building create react app with rrweb latest version.

./node_modules/rrweb/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__node__WorkerClass.js Module not found: Can't resolve 'worker_threads' in '/workspace/react-voicerecorder/node_modules/rrweb/es/rrweb/_virtual'

Steps to Reproduce

  1. Create basic react app
  2. Install [email protected]
  3. Run command "npm run build"
  4. Check warnings

Testcase Gist URL

No response

Additional Information

Node Version - v16.18.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions