Closed str3tch closed 4 years ago
hi there,
I have installed the package and I can see it in my project's node_modules folder.
However, if I try to import the typescript way it cannot find the module:
import { authz } from 'casbin-express-authz';
If I use the old NodeJS way, using require, it can find the module:
var cas = require('casbin-express-authz');
See here, both methods are below. The TS version has an issue.
And reports this error on building:
From a little googling, perhaps express-authz is missing a types file?
Thanks @str3tch , v3.0.1 has been released.
v3.0.1
hi there,
I have installed the package and I can see it in my project's node_modules folder.
However, if I try to import the typescript way it cannot find the module:
If I use the old NodeJS way, using require, it can find the module:
See here, both methods are below. The TS version has an issue.
And reports this error on building:
From a little googling, perhaps express-authz is missing a types file?