zenstackhq / zenstack

Fullstack TypeScript toolkit that enhances Prisma ORM with flexible Authorization layer for RBAC/ABAC/PBAC/ReBAC, offering auto-generated type-safe APIs and frontend hooks.
https://zenstack.dev
MIT License
2.07k stars 89 forks source link

[BUG] import models from npm module doesn't work since zenstack version 2.6.2 #1760

Open Tsimopak opened 4 days ago

Tsimopak commented 4 days ago

import models from npm module doens't work at all after moving from zenstack version 2.5.1 to 2.6.2

Steps to repro can be found here: https://github.com/zenstackhq/zenstack/issues/1626

Tsimopak commented 17 hours ago

I think the issue started to happen when moving to pnpm, in that case, the path in node_modules is a bit more cumbersome