Skip to content

tsci dev gives error #154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
divanshu-go opened this issue Apr 12, 2025 · 3 comments
Open

tsci dev gives error #154

divanshu-go opened this issue Apr 12, 2025 · 3 comments

Comments

@divanshu-go
Copy link
Contributor

┌──(user㉿war)-[~]
└─$ tsci init  
A new version of tsci is available (0.1.80 → 0.1.81).
Would you like to update now? (y/n): yCreated: /home/user/index.tsx
Created: /home/user/.npmrc
Created: /home/user/package.json
Created: /home/user/tsconfig.json
Created: /home/user/.gitignore
Initializing project in /home/user...
Updated package.json to remove unnecessary fields.
Installing dependencies...


added 38 packages, and audited 39 packages in 34s

3 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
Dependencies installed successfully.
🎉 Initialization complete! Run "tsci dev" to start developing.
                                                                                                                                                                                           
┌──(user㉿war)-[~]
└─$ 
                                                                                                                                                                                           
┌──(user㉿war)-[~]
└─$ tsci dev 
Found entrypoint at: /home/user/index.tsx
Installing types for imported snippets... done
node:internal/deps/undici/undici:13502
      Error.captureStackTrace(err);
            ^

TypeError: fetch failed
    at node:internal/deps/undici/undici:13502:13
    at async function_ (file:///home/user/.bun/install/global/node_modules/@tscircuit/cli/dist/main.js:433157:22)
    at async DevServer.upsertInitialFiles (file:///home/user/.bun/install/global/node_modules/@tscircuit/cli/dist/main.js:438967:7)
    at async DevServer.start (file:///home/user/.bun/install/global/node_modules/@tscircuit/cli/dist/main.js:438935:5)
    at async Command.<anonymous> (file:///home/user/.bun/install/global/node_modules/@tscircuit/cli/dist/main.js:439052:5) {
  [cause]: Error: read ECONNRESET
      at TCP.onStreamRead (node:internal/stream_base_commons:216:20) {
    errno: -104,
    code: 'ECONNRESET',
    syscall: 'read'
  }
}

Node.js v22.14.0
                                                                                                                                                                                           
┌──(user㉿war)-[~]
└─$ 
@divanshu-go divanshu-go changed the title tsci dev gives error tsci dev gives error Apr 12, 2025
@divanshu-go
Copy link
Contributor Author

@seveibar

To reproduce the error

tsci init
tsci dev

@seveibar
Copy link
Contributor

I don't get this error fwiw, what is your OS?

@divanshu-go
Copy link
Contributor Author

@seveibar I'm on linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants