Skip to content
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

error - RPC error #2408

Closed
2 tasks done
pwjheu opened this issue Aug 3, 2023 · 2 comments
Closed
2 tasks done

error - RPC error #2408

pwjheu opened this issue Aug 3, 2023 · 2 comments
Labels
priority: low To delay as much as possible scope: toolpad-studio Abbreviated to "studio" status: waiting for author Issue with insufficient information

Comments

@pwjheu
Copy link

pwjheu commented Aug 3, 2023

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Steps:

  1. yarn create toolpad-app my-toolpad-app
  2. yarn dev
  3. error - RPC error on the terminal

Current behavior 😯

PS C:\Users\Desktop\toolpad\my-toolpad-app> npm run dev

[email protected] dev
toolpad dev

info - starting Toolpad application in dev mode...
info - loaded env file "C:\Users\Desktop\toolpad\my-toolpad-app.env" with keys
ready - built functions.ts: 0 error(s), 0 warning(s)
ready - toolpad project C:\Users\Desktop\toolpad\my-toolpad-app ready on http://localhost:3000
(node:15272) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use node --trace-warnings ... to show where the warning was created)

error - RPC error
TypeError: Cannot read properties of undefined (reading 'statusCode')
at packageJson (C:\Users\Desktop\toolpad\my-toolpad-app\node_modules\node_modules\package-json\index.js:71:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at latestVersion (C:\Users\Desktop\toolpad\my-toolpad-app\node_modules\node_modules\latest-version\index.js:4:20)
at async Promise.all (index 0)
at checkVersion (C:\Users\Desktop\toolpad\my-toolpad-app\node_modules@mui\toolpad\src\server\versionInfo.ts:43:36)
at (C:\Users\Desktop\toolpad\my-toolpad-app\node_modules@mui\toolpad\src\server\rpc.ts:82:21)

Expected behavior 🤔

No response

Context 🔦

No response

Your environment 🌎

"@mui/toolpad": "^0.1.21"

@pwjheu pwjheu added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Aug 3, 2023
@Janpot
Copy link
Member

Janpot commented Aug 3, 2023

@pwjheu Would you mind checking which version of package-json is installed? e.g. what's the output of

yarn list package-json  

The issue we see here should've been fixed in the latest version sindresorhus/package-json@80fb1fb?diff=unified#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346R71

@Janpot Janpot added status: waiting for author Issue with insufficient information priority: low To delay as much as possible and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 3, 2023
@github-actions
Copy link

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

@oliviertassinari oliviertassinari added the scope: toolpad-studio Abbreviated to "studio" label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low To delay as much as possible scope: toolpad-studio Abbreviated to "studio" status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

3 participants