[Bug] Can't build with 7.4.2
See original GitHub issueBug report
Hey there,
We’ve just updated from 7.2.3
to 7.4.2
and the update broke our build process.
Environment
Run and copy the result of:
npx envinfo --system --npmPackages react* --binaries --npmGlobalPackages react* --browsers
here:
npx: installed 1 in 1.317s
System:
OS: macOS 10.15.5
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 1.05 GB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.18.2 - ~/.nvm/versions/node/v12.18.2/bin/node
Yarn: 1.19.1 - /usr/local/bin/yarn
npm: 6.14.5 - ~/.nvm/versions/node/v12.18.2/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Browsers:
Chrome: 83.0.4103.116
Firefox: 75.0
Safari: 13.1.1
npmPackages:
react: ^16.13.1 => 16.13.1
of course include any other package versions here if relevant.
Steps to Reproduce the problem
Updated from 7.2.3
, broke the app
Expected Behavior
Should build normally
Stack trace
This is the error that the build throws:
Bundling App...
Version: webpack 4.43.0
Time: 37766ms
Built at: 07/20/2020 6:07:42 PM
Asset Size Chunks Chunk Names
main.097491a8.js 189 KiB 0 [immutable] main
styles.42ef974f.css 141 KiB 1 [immutable] styles
templates/styles.d1b3adf7.js 82 bytes 1 [immutable] styles
templates/vendors~main.7bbce98f.js 961 KiB 2 [immutable] vendors~main
[0] /Users/pedrobini/Documents/repos/my-react-static-app/node_modules/react/index.js 189 bytes {2} [built]
[14] /Users/pedrobini/Documents/repos/my-react-static-app/node_modules/@babel/runtime/helpers/interopRequireDefault.js 147 bytes {2} [built]
[22] /Users/pedrobini/Documents/repos/my-react-static-app/node_modules/@babel/runtime/helpers/extends.js 427 bytes {2} [built]
[82] (webpack)/buildin/global.js 582 bytes {2} [built]
[99] ../lib/browser/index.js 24.8 KiB {2} [built]
[127] /Users/pedrobini/Documents/repos/my-react-static-app/node_modules/@babel/runtime/helpers/objectWithoutProperties.js 665 bytes {2} [built]
[184] /Users/pedrobini/Documents/repos/my-react-static-app/node_modules/@babel/runtime/helpers/interopRequireWildcard.js 1.15 KiB {2} [built]
[186] ../lib/browser/hooks/useStaticInfo.js 624 bytes {2} [built]
[255] /Users/pedrobini/Documents/repos/my-react-static-app/node_modules/regenerator-runtime/runtime.js 23.5 KiB {2} [built]
[420] multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js 64 bytes {0} [built]
[421] /Users/pedrobini/Documents/repos/my-react-static-app/node_modules/babel-polyfill/lib/index.js 833 bytes {2} [built]
[422] /Users/pedrobini/Documents/repos/my-react-static-app/node_modules/core-js/shim.js 8.22 KiB {2} [built]
[622] ../lib/bootstrapPlugins.js 513 bytes {2} [built]
[649] ../lib/bootstrapTemplates.js 763 bytes {2} [built]
[660] ../lib/bootstrapApp.js 1.48 KiB {2} [built]
+ 1529 hidden modules
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-browser-plugins.js
Module not found: Error: Can't resolve '__react_static_root__/node_modules/react-static-plugin-react-router/browser.api.js' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-browser-plugins.js 2:0-104 3:110-117
@ ../lib/bootstrapPlugins.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/Checkout' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:19852-19927 1:19524-19664
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/CorporateCustomerForm' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:17618-17706 1:17251-17417
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/GetOffer' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:18384-18459 1:18056-18196
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/Login' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:12891-12963 1:12572-12706
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/PrivateCustomerForm' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:16806-16892 1:16445-16607
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/Profile' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:16038-16112 1:15713-15851
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/RequestResetPassword' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:13657-13744 1:13293-13457
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/RequestResetPasswordSuccess' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:14496-14590 1:14111-14289
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/ResetPassword' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:15300-15380 1:14957-15107
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/VerifyUser' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:19119-19196 1:18785-18929
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:7331-7389 1:7055-7161
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/404' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:3289-3351 1:3002-3116
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/Contact' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:6703-6769 1:6403-6525
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/EnvironmentalBonus' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:8011-8088 1:7678-7822
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/FAQ' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:9364-9426 1:9075-9189
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/Imprint' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:4597-4663 1:4297-4419
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/Partner' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:6043-6109 1:5743-5865
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/Privacy' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:3937-4003 1:3637-3759
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/configurator/Configurator' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:5329-5413 1:4975-5133
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/fullpages/finder/Finder' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:12185-12257 1:11866-12000
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/templates/FAQAnswer' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:8712-8780 1:8406-8532
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/templates/brandmodel/Brand' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:10051-10126 1:9723-9863
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/templates/brandmodel/Model' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:10778-10853 1:10450-10590
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
ERROR in /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js
Module not found: Error: Can't resolve '__react_static_root__/src/templates/offer/Offer' in '/Users/pedrobini/Documents/repos/my-react-static-app/artifacts'
@ /Users/pedrobini/Documents/repos/my-react-static-app/artifacts/react-static-templates.js 1:11485-11555 1:11172-11302
@ ../lib/bootstrapTemplates.js
@ multi babel-polyfill ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
Child extract-css-chunks-webpack-plugin css-loader/dist/cjs.js??ref--5-oneOf-2-1!../../postcss-loader/src/index.js??postcss!../../../src/app.css:
[0] ./css-loader/dist/cjs.js??ref--5-oneOf-2-1!/Users/pedrobini/Documents/repos/my-react-static-app/node_modules/postcss-loader/src??postcss!/Users/pedrobini/Documents/repos/my-react-static-app/src/app.css 1020 KiB {0} [built]
[1] ./css-loader/dist/runtime/api.js 2.35 KiB {0} [built]
=> There were ERRORS during the prod build stage! :(
=> Fix them and try again!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:10 (2 by maintainers)
Top Results From Across the Web
[SOLVED] BUG: Unable to rebuild php-7.4.2 on current
Hello, I can't rebuild php 7.4.2 on current Slackware. Here is the error: checking for IMAP ... configure: error: build test failed.
Read more >Could not find com.android.tools.build:gradle:7.4.2 ... - GitHub
I can't build the standard flutter app to a android emulator, already tried update gradle to newest version, i download Java SDK, ...
Read more >Gradle 7.4.2 fails on Groovy and Java 17 - Stack Overflow
I've finally been able to build the project. After some time, Gradle has accepted the changes and built successfully. Changes needed:.
Read more >Troubleshooting builds - Gradle User Manual
If gradle --version works, but all of your builds fail with the same error, it is possible there is a problem with one...
Read more >Upgrading QRadar SIEM - IBM
New in 7.4.2 When you run the upgrade, any QRadar Event Collectors are detected. ... 'Patch Test Failed' [ERROR](testmode) Patching can not continue...
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 Free
Top 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
@SleeplessByte I created a
.nojekyll
file and now it’s working as expected.@pedro-lb thanks for the info – could you try and update your
node.api.js
config like so:This way you will merge into the existing
config.resolve.alias
instead of overwriting it’s value.