-
-
Notifications
You must be signed in to change notification settings - Fork 662
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
[v3] Not possible to use with PG database #3104
Comments
Might be related to this: #3050 |
@hdwebpros it seems a different thing (but, yes, it could be somehow related) since it was possible at least to install the module and launch it locally before the v3.1.0, but it is not possible even to launch the project after that release. |
The module always uses SQLite database in local and development mode, the database will be used in production. So depending on where you want to deploy, you choose the database.
Do you face this error in Linux or inside WebContainers, like Stackblitz? Have you tried installing I just cloned the reproduction, and it does work as expected. |
@farnabaz Thank you for checking.
That sounds strange. Why
Tried both, Linux locally and in Stackblitz.
Of course, I tried to install Before v3.1.0 it was working well (I tried v3.0.0 and v3.0.1). Feel free to ask for some additional info. I woud be glad to share. |
I just tried your reproduction in Stackblitz with
I Linuxt you should not face Lines 11 to 25 in 1b53fe8
Maybe the check is buggy in linux |
@farnabaz That WebContainer error indeed dropped when I tried in Stackblitz, while the errors I include in "Logs" are in Local environment. But why is that |
OK, I found out the problem. It was related to this issue: pnpm/pnpm#9073 ╭ Warning ──────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Ignored build scripts: @parcel/watcher, better-sqlite3, esbuild. │
│ Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts. │
│ │
╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ So, after approving builds it works properly now. |
Environment
Version
v3
Reproduction
https://github.com/maxdzin/nuxt-content-issue
Description
Starting from v3.1.0 it is impossible to use the module that configured to use the Postgres DB, because of the error (requirement of sqlite3).
Steps to reproduce:
pnpm install
) it is failed with this error:Additional context
There's also another project where I was trying to use the content module with PG DB, but it failed due to errors (see the logs section).
Logs
The text was updated successfully, but these errors were encountered: