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.
1 Reply
royanger
royanger2y ago
Are you using the scheduler package directly in your code? If so then you can run that down and fix the import. If its a dep of something else (likely) then you can file an Issue with the repo, use patch-package and fix within your project or figure out what's using the package and remove that and use something else.
Want results from more Discord servers?
Add your server