Issue on react-scripts@5.0.0, react@18.0.0
See original GitHub issueDescribe the bug
Since I am using create-react-app
, I needed to use react-app-rewired
to configure my webpack.config
.
This is what my config-overrides.js
looks like:
const webpack = require('webpack');
module.exports = function override(config, env) {
config.plugins = [
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
process: 'process/browser',
}),
];
config.resolve.fallback = {
process: require.resolve('process/browser'),
zlib: require.resolve('browserify-zlib'),
stream: require.resolve('stream-browserify'),
util: require.resolve('util'),
buffer: require.resolve('buffer'),
asset: require.resolve('assert'),
};
return config;
};
Whenever I put this code
config.plugins = [
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
process: 'process/browser',
}),
];
on the webpack.config
and start the server, it produces this error on the terminal URIError: Failed to decode param '/%PUBLIC_URL%/manifest.json'
. I tried removing the %PUBLIC_URL%
and it just gives me white screen with no errors.
Screenshots
Desktop (please complete the following information):
- OS: Windows
- Browser: Brave
- React-pdf version: 2.1.1
Issue Analytics
- State:
- Created a year ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
create-react-app dependency version issues with React 18
Found: react@18.0.0 npm ERR! node_modules/react npm ERR! react@"^18.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: ...
Read more >Versions - React
React Versions. A complete release history for React is available on GitHub. Changelogs for recent releases can also be found below.
Read more >[Solved] react-scripts: command not found - ItsJavaScript
The react-scripts: command not found error mainly occurs if the dependencies are not installed or if the react-scripts is not installed.
Read more >React Project causing npm ERR! code ERESOLVE while ...
The error is a peer dependency conflict relating to versions of react, which provides guidance on how you can attempt to resolve it:...
Read more >Which changes are necessary for upgrading to React 18 and ...
you issue is updating http-proxy-middleware to version 2. devserver (web pack) is built with version 0 and the configuration scripts match ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, any updates? React 18 is it compatible ?
Ok, it may not be helpful but… u need to put in alias…
Regardless, it will still give error when complied.
Any updates/ solution any1? Cause I just started a new project in react 18
I can’t even perform npm install