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

Unable to use entitles from TypeORM #946

Closed
Ibrahimmushtaq98 opened this issue Nov 22, 2024 · 0 comments
Closed

Unable to use entitles from TypeORM #946

Ibrahimmushtaq98 opened this issue Nov 22, 2024 · 0 comments
Labels
bug A bug that needs to be resolved pending An issue waiting for triage

Comments

@Ibrahimmushtaq98
Copy link

Environment

Reproduction

https://github.com/Ibrahimmushtaq98/nuxt-entites-test,

just install the package and run the project normally, there will be an error, and then if you comment out line 31 of server/api/[...].ts the project will run fine

Describe the bug

I am unsure if this is a bug on Sidebase side or just a bug for Nuxt (Please let me know on this)

When I am trying to add entities as described in the NextAuth documentation, I would get this error. In the repo the entites.ts file just contain the standard custom modal

 ERROR  [nitro] [uncaughtException] Cannot read properties of undefined (reading 'constructor')

  at <anonymous> (node_modules\typeorm\decorator\src\decorator\columns\PrimaryGeneratedColumn.ts:106:28)
  at __decorateElement (node_modules\@sidebase\nuxt-auth\dist\runtime\server\services\authjs\nuxtAuthHandler.js:189:1)
  at <anonymous> (external\entities.ts:24:3)
  at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
  at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
  at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)

Additional context

No response

Logs

No response

@Ibrahimmushtaq98 Ibrahimmushtaq98 added bug A bug that needs to be resolved pending An issue waiting for triage labels Nov 22, 2024
@Ibrahimmushtaq98 Ibrahimmushtaq98 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug that needs to be resolved pending An issue waiting for triage
Projects
None yet
Development

No branches or pull requests

1 participant