Build failed due to import error

Build failed due to import error After running the build command for my react app the build failed and the below is the response I get.
Creating an optimized production build...
Failed to compile.

Attempted import error: 'LowPriority' is not exported from 'scheduler' (imported as 'LowPriority’).
Creating an optimized production build...
Failed to compile.

Attempted import error: 'LowPriority' is not exported from 'scheduler' (imported as 'LowPriority’).
package.json
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test"
},
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test"
},
An ideal on how to resolve this issue will be much appreciated.
3 Replies
vince
vince2y ago
Can we see where you import LowPriority and scheduler?
Leke
LekeOP2y ago
I didn't import it anywhere in the project
vince
vince2y ago
Hard to diagnose without knowing anything. Try to reinstall the package that is throwing the error.
Want results from more Discord servers?
Add your server