dry-scarletD
Refine3y ago
5 replies
dry-scarlet

Error Can't resolve 'fs'

Hello everyone, I'm facing an error integrating Casbin accessControlProvider

here is the code for accessControlProvider I followed from the documentation

accessControlProvider={{ can: async ({ resource, action }) => { const enforcer = await newEnforcer(model, adapter); const can = await enforcer.enforce('admin', resource, action); return { can }; }, }}

And its showing Can't resolve 'fs'
Screenshot_2023-03-21_at_4.37.05_PM.png
Was this page helpful?