X
Xata5mo ago
BOOuumi

xata.ts not being generated after command failure

Using react + next.js to make a portoflio. I'm trying to init my db to my project but a command fails "npm install --save @xata.io/client". I can run the command myself but it doesnt solve the issue of the xata.ts file not being generated. Please help
No description
4 Replies
kostas
kostas5mo ago
Does this happen on Windows 11? There is a known issue there, see this repo for a workaround: https://github.com/xataio/client-ts/issues/1486 - Install the client module "manually" in the project directory with npm install --save '@xata.io/client' - During xata init, in the "Generate code and types from your Xata database" prompt select "None". This skips the client install step. - Once init is completed, run xata codegen which will create the xata.ts file
GitHub
Init client install fails on Windows 11 · Issue #1486 · xataio/clie...
Describe the bug Reproduced with CLI 0.15.4 On Windows 11 (Powershell, as admin) the xata init client install step fails. i Running npm install --save @xata.io/client 'C:\Program' is not re...
BOOuumi
BOOuumiOP5mo ago
Thank you! Worked like a charm :D On windows 10 right now
kostas
kostas5mo ago
Great. We'll prioritize fixing this
BOOuumi
BOOuumiOP5mo ago
Super! Let me know if I can be of any help
Want results from more Discord servers?
Add your server