-
Im getting this error , and it looks like an issue with the react package in node_modules/react , inside that there is a folder called cjs and inside it a file called react.production.min.js , idk what this file does but it should be exported in the package.json file inside node_modules/react/package.json , but when i looked at it dosent export the cjs folder that contains react.production.min.js that i need to resolve this problem , i think there is an issue at their end in the react 0.18 version. CHECK THIS DISCUSSION THAT REPORTED THIS BUG : facebook/react#24420 Server Error
node_modules/react/package.json
You can see in the exports section im trying to export the cjs file |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
NVM I FIXED THIS ISSUE :- to i get the useEffect function i was importing it like this TO FIX THIS ALL I HAD TO DO IS IMPORT LIKE THIS IN MY FILE: but i do still think there is an issue in the react package, also several ppl reported it in other fourms |
Beta Was this translation helpful? Give feedback.
NVM I FIXED THIS ISSUE :-
to i get the useEffect function i was importing it like this
import { useEffect } from "react/cjs/"react.production.min"
TO FIX THIS ALL I HAD TO DO IS IMPORT LIKE THIS IN MY FILE:
import { useEffect } from "react"
but i do still think there is an issue in the react package, also several ppl reported it in other fourms