NotionX / NotionX/react-notion-x

Polifill problems with React

Open
#450 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.4k
Forks
645
PR merge metrics
No merged PRs in 30d

Description

Description

I have a lot of problem with this module. Im trying use in react, when compile, i have multiple BREAKING CHANGE error ( exaclty,23).
All errors refer to 'webpack<5 used to include polyfills'

i install all dependecies but the errors persist.

polyfills require: stream, tls, net, http2, http, https, zlib, os, dns

Any idea how to solve it?

i have:
webpack : 5.76.1
node: 19.7.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the compile errors with React, webpack 5.76.1, and Node 19.7.0, then inspect how the module requests the listed polyfills: stream, tls, net, http2, http, https, zlib, os, and dns. Done means the build no longer reports the webpack polyfill breaking-change errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, react, typescript, webpack
Domain
build-system, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.