mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3127] ReferenceError: AuthUser_1 is not defined [bug][self-hosted]: #1027
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1027
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tzaqam on GitHub (Jun 8, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3127
Originally assigned to: @mirarifhasan on GitHub.
Is there an existing issue for this?
Current behavior
When i ran: pnpm install throws an ReferenceError
│ import { PrismaClient } from '@prisma/client'
│ const prisma = new PrismaClient()
│ ```
│ > hoppscotch-backend@2023.4.3 generate-gql-sdl C:\Users\tzaqam\Documents\developement\hoppscotch\packages\hoppscotch-backend
│ > cross-env GQL_SCHEMA_EMIT_LOCATION='../../../gql-gen/backend-schema.gql' GENERATE_GQL_SCHEMA=true WHITELISTED_ORIGINS='' nest start
│ C:\Users\tzaqam\Documents\developement\hoppscotch\packages\hoppscotch-backend\src\user\user.resolver.ts:29
│ me(@GqlUser() user: AuthUser) {
│ ^g.decl.jsonip: 45.75 KiB
│ ReferenceError: AuthUser_1 is not defined
│ at Object. (C:\Users\tzaqam\Documents\developement\hoppscotch\packages\hoppscotch-backend\src\user\user.resolver.ts:29:23)
│ at Module._compile (node:internal/modules/cjs/loader:1254:14)
│ at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
│ at Module.load (node:internal/modules/cjs/loader:1117:32)
│ at Function.Module._load (node:internal/modules/cjs/loader:958:12)
│ at Module.require (node:internal/modules/cjs/loader:1141:19) some inertnal bugs.
│ at require (node:internal/modules/cjs/helpers:110:18)
│ at Object. (C:\Users\tzaqam\Documents\developement\hoppscotch\packages\hoppscotch-backend\src\user\user.module.ts:2:1)
│ at Module._compile (node:internal/modules/cjs/loader:1254:14)
│ at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
│ ELIFECYCLE Command failed with exit code 1.
└─ Failed in 20s at C:\Users\tzaqam\Documents\developement\hoppscotch\packages\hoppscotch-backend
ELIFECYCLE Command failed with exit code 1.
Steps to reproduce
Install all prerequesites for self-hosted
1.- pnpm install
Environment
Production
Version
Self-hosted
@mirarifhasan commented on GitHub (Jun 20, 2023):
Hi @tzaqam,
I attempted to reproduce the reported issue on my own computer, but I wasn't able to encounter it.
I kindly request you to pull the latest updates from the repository and give it another try. This should ensure that you have all the recent changes incorporated into your codebase. Once you've done that, please let me know if the issue persists or if any further assistance is needed.
Thank you!
@nguyennm96 commented on GitHub (Jun 20, 2023):
@mirarifhasan, are you using an M1 chip or Intel? I'm facing the same issue on Windows with an Intel chip.
@mirarifhasan commented on GitHub (Jun 22, 2023):
Hi @tzaqam,
Thank you for providing that additional information. I am able to reproduce the issue with Windows OS. We are trying to resolve this issue.
In order to troubleshoot it further (temporarily), I kindly request you delete the following two folders from your local project directory
node_modules(from the root directory)packages/hoppscotch-backend/distAfter deleting these folders, please run
pnpm installagain to reinstall the necessary dependencies.If you encounter any difficulties or have further questions, feel free to ask.
@AndrewBastin commented on GitHub (Sep 6, 2023):
Closing due to inactivity. Please reopen if you still have this issue in the 2023.8.0 release.
@liudonghua123 commented on GitHub (Sep 19, 2023):
Delete
packages/hoppscotch-backend/distworks for me. However, I got another errorError: mailer/smtp_url_undefined. Maybe I need to deletenode_modulesand try again.@liudonghua123 commented on GitHub (Sep 20, 2023):
I tried again and I have other errors.
Details
See also https://github.com/hoppscotch/hoppscotch/issues/3373.