casbin / casbin.js

An authorization library that supports access control models like ACL, RBAC, ABAC in Frontend Javascript
https://casbin.org/docs/en/frontend
Apache License 2.0
160 stars 37 forks source link

Module not found: Can't resolve 'fs' #270

Closed sukhtulgaotgonbayar closed 1 year ago

sukhtulgaotgonbayar commented 1 year ago

image

I'm using it on Next.js as port of a backend Casbin service. But its gives me this error. Maybe it is from the Webpack settings?

casbin-bot commented 1 year ago

@nodece @Zxilly @Shivansh-yadav13

pnvasko commented 1 year ago

Try look here https://github.com/casbin/node-casbin/issues/386

GhostyJade commented 1 year ago

Are you using react-scripts 5?