Class extends value undefined is not a constructor or null
See original GitHub issueWhen importing casbin in a typescript project for Angular I get this error:
For the Model
class I’ve solved by importing like this:
import { Model } from "casbin/lib/esm/model";
But for newEnforcer
there is no way to work around that issue. Am I missing something?
Issue Analytics
- State:
- Created 2 years ago
- Comments:26 (13 by maintainers)
Top Results From Across the Web
Class extends value undefined is not a function or null - Stack ...
I am getting the following error when trying to create these entities. TypeError: Class extends value undefined is ...
Read more >Class extends value undefined is not a constructor or null in ...
Describe the bug On using 3.53.0 version of "@aws-sdk/client-*" packages, we are getting the following error on running our tests: ...
Read more >TypeError: Class extends value undefined is not a ... - Drupal
Initial searching seems to imply that this indicates an issue with a circular dependency. Might have to be a separate issue, but there...
Read more >typeerror: class extends value undefined is not a ... - You.com
TypeError : Class extends value undefined is not a function or null. Start > Run > AppWiz.cpl > Uninstall node.js. Delete the node...
Read more >TypeError: Class extends value undefined is not a constructor ...
[moved to issue] Tutorial problem: TypeError: Class extends value undefined is not a constructor or null - Get Help and Help Others -...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello @giovanni-bertoncelli,
casbin.js@next
has been released on NPM, you can useyarn add casbin.js@next
ornpm install casbin.js@next --save
to add this to your project, how to use:Maybe this can be a valid alternative: https://www.papaparse.com/