[GH-ISSUE #4923] Cannot read properties of undefined (reading 'endsWith') #1856

Closed
opened 2026-03-16 22:08:00 +03:00 by kerem · 1 comment
Owner

Originally created by @thisisnohi on GitHub (Mar 20, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4923

evn
OS: Mac Darwin Kernel Version 22.6.0 CPU intel
node: v22.14.0
pnpm: 10.2.1

  1. pnpm run dev
  2. When I open the page at http://localhost:3000/, the error "Cannot read properties of undefined (reading 'endsWith')" appears.

please help me....

$ pnpm run dev

hoppscotch-app@3.0.1 dev /Users/nohi/Downloads/hoppscotch-main
pnpm -r do-dev

Scope: 15 of 16 workspace projects
packages/hoppscotch-selfhost-web do-dev$ pnpm run dev
[29 lines collapsed]
│ [dev:vite ]
│ [dev:vite ] VITE v5.4.9 ready in 1619 ms
│ [dev:vite ]
│ [dev:vite ] ➜ Local: http://localhost:3000/
│ [dev:vite ] ➜ Network: use --host to expose
│ [dev:vite ] ➜ Inspect: http://localhost:3000/__inspect/
│ [dev:gql-codegen] [SUCCESS] Generate
│ [dev:gql-codegen] [SUCCESS] Generate to src/api/generated/graphql.ts
│ [dev:gql-codegen] [SUCCESS] Generate outputs
│ [dev:gql-codegen] ℹ Watching for changes in /Users/xxxx/Downloads/hoppscotch-main...

Image
Originally created by @thisisnohi on GitHub (Mar 20, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4923 evn OS: Mac Darwin Kernel Version 22.6.0 CPU intel node: v22.14.0 pnpm: 10.2.1 1. pnpm run dev 2. When I open the page at http://localhost:3000/, the error "Cannot read properties of undefined (reading 'endsWith')" appears. please help me.... $ pnpm run dev > hoppscotch-app@3.0.1 dev /Users/nohi/Downloads/hoppscotch-main > pnpm -r do-dev Scope: 15 of 16 workspace projects packages/hoppscotch-selfhost-web do-dev$ pnpm run dev [29 lines collapsed] │ [dev:vite ] │ [dev:vite ] VITE v5.4.9 ready in 1619 ms │ [dev:vite ] │ [dev:vite ] ➜ Local: http://localhost:3000/ │ [dev:vite ] ➜ Network: use --host to expose │ [dev:vite ] ➜ Inspect: http://localhost:3000/__inspect/ │ [dev:gql-codegen] [SUCCESS] Generate │ [dev:gql-codegen] [SUCCESS] Generate to src/api/generated/graphql.ts │ [dev:gql-codegen] [SUCCESS] Generate outputs │ [dev:gql-codegen] ℹ Watching for changes in /Users/xxxx/Downloads/hoppscotch-main... <img width="1224" alt="Image" src="https://github.com/user-attachments/assets/a60c151e-0f2a-4635-8a4e-4f65e1e2b171" />
kerem closed this issue 2026-03-16 22:08:06 +03:00
Author
Owner

@thisisnohi commented on GitHub (Mar 20, 2025):

copy the .env.example and rename it to .env - edit as needed. That solves

<!-- gh-comment-id:2740598856 --> @thisisnohi commented on GitHub (Mar 20, 2025): copy the .env.example and rename it to .env - edit as needed. That solves
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1856
No description provided.