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
And its showing Can't resolve 'fs'
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'

