The-Commit-Company / frappe-react-sdk

React hooks for Frappe
https://frappe-react.vercel.app
MIT License
107 stars 36 forks source link

createContext Error #61

Closed tsmanagers closed 3 months ago

tsmanagers commented 5 months ago

We have Erpnext 15 set up, and we are trying to integrate this SDK with the following code, but we are getting the below error. Will this SDK work with NextJS, or will it only work with ReactJS?

Also, we installed the webpack plugin, but it still has the same issue.

image (1)
nikkothari22 commented 5 months ago

@tsmanagers This SDK is only for the client. So you can use it in all your client components. For server side components, you can use frappe-JS-SDK