0

I get this error:

react__WEBPACK_IMPORTED_MODULE_1___default.a.createContext is not a function

I see all the others questions related to this topic but with no success, my versions is this :

"dependencies": {
 "@south-paw/react-vector-maps": "^3.0.0",
 "@testing-library/jest-dom": "^5.11.6",
 "@testing-library/react": "^11.2.2",
 "@testing-library/user-event": "^12.5.0",
 "react": "^17.0.1",
 "react-bootstrap-calendar": "0.0.3",
 "react-dom": "^17.0.1",
 "react-redux": "^7.2.2",
 "react-regex": "^1.0.0",
 "react-scripts": "4.0.1",
 "web-vitals": "^0.2.4"
 },

I also create a new react empty project but the result is the same and i really don't know how to solve the problem at this time

-----EDIT-----

I uninstalled and installed again nodejs and npm and i create a new project using yarn instead, now the problem is solved but anyway i still don't understand the meaning of this error

marc_s
760k186 gold badges1.4k silver badges1.5k bronze badges
asked Dec 22, 2020 at 23:36
2

1 Answer 1

0

I solved the issue by uninstilling react and nodejs, probably i've done some mistake with versions

answered Dec 23, 2020 at 21:27
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.