Set up problem #1
Loading…
Add table
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?
Hi, I don't know much about Node so apologies if this is really obvious.
I'm trying to set up GPSTracker without using Docker and when i run "npm run start" it's throwing up an error. I'm using sqlite as a DB and the installation appears to have had no errors up to this point.
It looks like you haven't built the project. It's in Typescript, not JavaScript, so you'll have to compile the backend and frontend via make, and then start it via npm run start.
Hmm, I have run make... Is it a version problem? It looks to me like my distro's nodejs is a bit out of date.
Hi,
I've worked it out.
The glob in src/db/Migrations.ts is '**/db/migrations/*.*s', which picks up:
so it's balking on the ts files, which aren't needed.
That's a good finding.
I can't reproduce this error - every time I've tested the db migration processes from scratch, even within Docker, Node ignores non-JS files if a
.js
is already available (not sure if it's a coincidence given by sorting).But I think that it makes sense to only run migrations from
.js
files - including.ts
file was mainly done to make migrations easier to develop, as they will be run directly from Typescript files when modifications are made, but if it's a good trade-off to pay for consistency.I've pushed a commit that addresses this issue.