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.
Additional context
In the documentation, the code snippet installs @zenstackhq/tanstack-query as a devDependencies which gets removed when running npm run build / nuxt build.
Moving the dependency to dependencies fixes this issue.
I'm not familiar with building tools like Vite but it seems this is an intended behavior and maybe the documentation should be updated?
Hi @emadzz , the doc is outdated. Please install "@zenstackhq/tanstack-query" without the "-D" flag. It needs to be a regular dependency instead of dev. I'll fix the doc. Thanks for reporting this!
Description and expected behavior When running
npm run build
to build a Nuxt 3 app, the command fails due to the following error:Screenshots N/A
Environment (please complete the following information):
Additional context In the documentation, the code snippet installs
@zenstackhq/tanstack-query
as adevDependencies
which gets removed when runningnpm run build
/nuxt build
.Moving the dependency to
dependencies
fixes this issue.I'm not familiar with building tools like Vite but it seems this is an intended behavior and maybe the documentation should be updated?