小编Roh*_*tal的帖子

Web3 问题:React 应用程序未编译

我在编译时遇到 React 应用程序的问题。请找到下面的问题并截图。

ERROR in ./node_modules/web3-providers-http/lib/index.js 30:11-26
Module not found: Error: Can't resolve 'http' in '/Users/rohit/Downloads/Personal/web3/react-minting-website/node_modules/web3-providers-http/lib'

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: { "http": require.resolve("stream-http") }'
        - install 'stream-http'
If you don't want to include a polyfill, you …
Run Code Online (Sandbox Code Playgroud)

javascript reactjs create-react-app web3js

1
推荐指数
1
解决办法
5688
查看次数

标签 统计

create-react-app ×1

javascript ×1

reactjs ×1

web3js ×1