0

I am getting following error while react-scripts build:

> react-scripts build

Creating an optimized production build...
Failed to compile.

Attempted import error: '__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE' is not exported from 'react' (imported as 'React').

enter image description here

The same issue is happening in Azure CI/CD pipeline as well in local.

Tried deleting yarn.lock file and node_modules folder.

Also tried re-running the Azure build pipeline but the result is same and there is no code change in Azure pipeline. I just tried running the Azure build pipeline again manually.

1 Answer 1

0

That's a new/renamed export that's only available in React 19 (which is still in beta & not fully released yet). You're likely using React 18 or older.

You'll have to track down where that's used and correct the library version that tries to import that (unless you're trying to access that yourself in your app's code).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.