Edit: Ignore I found the fix I am using Ory Keto...
# ory-selfhosting
k
Edit: Ignore I found the fix I am using Ory Keto with Node.js and TypeScript. I followed the official guide to create the permission model and installed the package @ory/keto-namespace-types. After installing this package, the global type definitions for core JavaScript objects appear to be broken. Specifically, Array, Object, String, and Boolean are affected. As a result: The TypeScript compiler fails the build Object.hasOwn(...), Arraystring throws type errors in any TypeScript file Environment details: Node.js: v22.17.0 TypeScript: v5.7.3 Could someone please advise on the correct way to use @ory/keto-namespace-types without breaking global TypeScript types, or suggest the recommended workaround?
✅ 1
m
Hey @kind-hair-93879 Can you share the fix with the rest of the community please?
k
@magnificent-energy-493 It was not exactly a fix but a workaround I excluded the folder by making a small edit in tsconfig.json file Workaround: { "exclude": ["keto"] // In my case the folder name is "keto" ... rest of the tsconfig stays the same }
🙌 1