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.
npx zenstack@latest init won't work for me. This is the error I received:
AppData\Local\npm-cache_npx\aded272cd7beac82\node_modules\@prisma\prisma-schema-wasm\src\prisma_schema_build.js:513
const wasmModule = new WebAssembly.Module(bytes);
^
CompileError: WebAssembly.Module(): section (code 10, "Code") extends past end of the module (length 1817800, remaining bytes 1161996) @+6682
at Object. (C:\Users\josep\AppData\Local\npm-cache_npx\aded272cd7beac82\node_modules\@prisma\prisma-schema-wasm\src\prisma_schema_build.js:513:20)
at Module._compile (node:internal/modules/cjs/loader:1504:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1588:10)
at Module.load (node:internal/modules/cjs/loader:1282:32)
at Module._load (node:internal/modules/cjs/loader:1098:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Module.require (node:internal/modules/cjs/loader:1304:12)
at require (node:internal/modules/helpers:123:16)
at Object. (C:\Users\josep\AppData\Local\npm-cache_npx\aded272cd7beac82\node_modules\@prisma\internals\dist\chunk-W65Z4BE5.js:39:41)
Node.js v22.5.1
I tried to clean the npm cache.
I tried to reinstall Node.
I tried to update Prisma.
I tried different versions of Node: 22.5.1, 20.16.0, 18.0.0.
I tried with a fresh T3 project.
Nothing worked, always the same error.
So, I installed it manually, and it finally worked.
npx zenstack@latest init won't work for me. This is the error I received:
AppData\Local\npm-cache_npx\aded272cd7beac82\node_modules\@prisma\prisma-schema-wasm\src\prisma_schema_build.js:513 const wasmModule = new WebAssembly.Module(bytes); ^
CompileError: WebAssembly.Module(): section (code 10, "Code") extends past end of the module (length 1817800, remaining bytes 1161996) @+6682 at Object. (C:\Users\josep\AppData\Local\npm-cache_npx\aded272cd7beac82\node_modules\@prisma\prisma-schema-wasm\src\prisma_schema_build.js:513:20)
at Module._compile (node:internal/modules/cjs/loader:1504:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1588:10)
at Module.load (node:internal/modules/cjs/loader:1282:32)
at Module._load (node:internal/modules/cjs/loader:1098:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Module.require (node:internal/modules/cjs/loader:1304:12)
at require (node:internal/modules/helpers:123:16)
at Object. (C:\Users\josep\AppData\Local\npm-cache_npx\aded272cd7beac82\node_modules\@prisma\internals\dist\chunk-W65Z4BE5.js:39:41)
Node.js v22.5.1
I tried to clean the npm cache. I tried to reinstall Node. I tried to update Prisma. I tried different versions of Node: 22.5.1, 20.16.0, 18.0.0. I tried with a fresh T3 project. Nothing worked, always the same error.
So, I installed it manually, and it finally worked.
Windows T3Stack Node: 22.5.1, 20.16.0, 18.0.0