Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: replace node-casbin with casbin-core to support run in brower better #271

Merged
merged 8 commits into from
Feb 3, 2023

Conversation

imp2002
Copy link
Member

@imp2002 imp2002 commented Feb 3, 2023

Fix: #270
Fix: #268

Because node-casbin is not for brower, there are some functions(fs, path .etc) dependent Node cause many problem such as #270, #268, when in webpack5 and vite no Node polyfill, replace node-casbin with casbin-core to fix it.

@casbin-bot
Copy link
Member

@nodece @Zxilly @Shivansh-yadav13 please review

yarn.lock Outdated Show resolved Hide resolved
@hsluoyz
Copy link
Member

hsluoyz commented Feb 3, 2023

@imp2002 fix CI:

image

@hsluoyz hsluoyz merged commit b2b976c into casbin:master Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Module not found: Can't resolve 'fs' casbin.js v0.4.1 not working with react-scripts 5
3 participants