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

casbin.js v0.4.1 not working with react-scripts 5 #268

Closed GhostyJade closed 1 year ago

GhostyJade commented 2 years ago

Hi. Long story short, I need to update my project's react-scripts from v4 to v5. The issue is that the casbin.js package throws an atrocious list of errors saying that lots of modules that webpack exported in v4 no longer are exported in v5 and breaks everything.

In particular, fs, buffer, stream (from csv-parser dependency in your casbin package), path (from casbin's picomatch package dependency).

There are any plans to support react-scripts 5 or should I consider to try ways to fix this issue myself?

Thanks in advance.

casbin-bot commented 2 years ago

@Gabriel-403 @Zxilly @kingiw @nodece

hsluoyz commented 2 years ago

@nodece @kingiw

hsluoyz commented 2 years ago

@keyuzhen

frrg commented 2 years ago

any news?

GhostyJade commented 2 years ago

@ferifahrul7 no, not from casbin manteiners. My team has decided not to use casbin.js anymore and use casl instead. We are also working to implement our custom permission management for our backend infrastructure.

hsluoyz commented 2 years ago

@Shivansh-yadav13 plz work on this

/cc @nodece @Zxilly

JohnnyTheTank commented 1 year ago

hi guys. any progress on this topic?