-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
Error reported importing database from ‘better-sqlite3’ #2141
Comments
Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly. |
Hi, homarr can work without the mounts properly done, but you may loose some things in if you restart the container. |
From what version did you update? On another note, you have a lot of potentially unnecessary environment variables.
Next, And finally, those next ones I am just unsure if they do anything, but they might also be tempering with homarr:
Make sure that homarr has the right permissions to use the folders you have mounted too. |
I upgraded from version 0.15.3, which means I pulled the source code for the latest master branch Sorry, I forgot to mention that I built the project manually yarn install I see the error message Tried both node version:v20.17.0 and node version:v20.2.0 and they don't work. |
The docker package is already readily available. I think you may need to do 3 possible commands: |
Yes,I switched to a docker image and it doesn't give me any errors, so it's obviously not a native problem with the application. |
This is our dockerfile. You can see we set the same node options and actually use the same node version (although the slim version only) Regarding yarn I am unsure, but I personally seem to have v1.22.19 running. |
Thank a lot. |
Environment
Docker
Version
0.15.4
Describe the problem
Docker containers report an error on startup
But it's working
I'm not sure if there's anything wrong with it that I'm not aware of
Logs
yarn run v1.22.19
$ ts-node ./migrate.ts
(node:29) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use
node --trace-warnings ...
to show where the warning was created)/app/migrate/migrate.ts:4
import Database from 'better-sqlite3';
^^^^^^
SyntaxError: Cannot use import statement outside a module
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Starting production server...
Context
No response
Please tick the boxes
The text was updated successfully, but these errors were encountered: