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

nuxt 3 typeorm support #809

Closed
alee opened this issue Sep 17, 2022 · 2 comments
Closed

nuxt 3 typeorm support #809

alee opened this issue Sep 17, 2022 · 2 comments

Comments

@alee
Copy link
Member

alee commented Sep 17, 2022

typeorm integration currently failing despite following installation steps from https://github.com/typeorm/typeorm#installation

  1. configure tsconfig.json with emitDecoratorMetadata:true and other recommended settings
  2. strangely yarn build still works but the dev nitro server fails, so this may be a nitro issue with Decorators

workaround is to explicitly set types on every Column decorator and then see what else breaks

port-of-mars-nuxt-1  | [nitro] [dev] [uncaughtException] ColumnTypeUndefinedError: Column type for Tournament#name is not defined and cannot be guessed. Make sure you have turned on an "emitDecoratorMetadata": true option in tsconfig.json. Also make sure you have imported "reflect-metadata" on top of the main entry file in your application (before any entity imported).If you are using JavaScript instead of TypeScript you must explicitly provide a column type.
port-of-mars-nuxt-1  |     at /code/web/node_modules/typeorm/decorator/columns/Column.js:52:23
port-of-mars-nuxt-1  |     at __decorateClass$6 (file:///code/web/.nuxt/dev/index.mjs:532:24)
port-of-mars-nuxt-1  |     at file:///code/web/.nuxt/dev/index.mjs:542:1
port-of-mars-nuxt-1  |     at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
port-of-mars-nuxt-1  |     at async Promise.all (index 0)
port-of-mars-nuxt-1  |     at async ESMLoader.import (node:internal/modules/esm/loader:533:24)
port-of-mars-nuxt-1  |     at async loadESM (node:internal/process/esm_loader:91:5)
port-of-mars-nuxt-1  |     at async handleMainPromise (node:internal/modules/run_main:65:12)
@alee
Copy link
Member Author

alee commented Sep 17, 2022

alee added a commit that referenced this issue Sep 17, 2022
we might need to table our pom-nuxt efforts for the time being until
there is a clear path forward for typeorm support. See #809 for more
details

as a stopgap, start to re-implement onboarding changes to the base
server side
@alee alee mentioned this issue Sep 17, 2022
@alee alee changed the title fix typeorm in nuxt 3 nuxt 3 typeorm support Nov 4, 2022
@alee
Copy link
Member Author

alee commented Oct 28, 2023

closing for now until we decide on #795

@alee alee closed this as completed Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant