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
4 Replies
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...
Thank you! Worked like a charm :D
On windows 10 right now
Great. We'll prioritize fixing this
Super! Let me know if I can be of any help