supabase/postgres-meta

Unable to run postgres-meta development

Amogh-Bharadwaj opened this issue · 0 comments

Discussed in https://github.com/orgs/supabase/discussions/13966

Originally posted by Amogh-Bharadwaj April 25, 2023
Hi!
Reproduction steps:
I cloned the latest postgres-meta repo , set env vars and ran npm run dev (after npm installing as well) as instructed.
Unfortunately I ran into the following SyntaxError: Unexpected identifier issue:

❯ npm run dev

> @supabase/postgres-meta@0.0.0-automated dev
> trap 'npm run db:clean' INT && run-s db:clean db:run && nodemon --exec node --loader ts-node/esm src/server/server.ts | pino-pretty --colorize


> @supabase/postgres-meta@0.0.0-automated db:clean
> cd test/db && docker-compose down

Removing network db_default
WARNING: Network db_default not found.

> @supabase/postgres-meta@0.0.0-automated db:run
> cd test/db && docker-compose up --detach && sleep 5

Creating network "db_default" with the default driver
Creating db_db_1 ... done
[nodemon] 2.0.22
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: ts,json
[nodemon] starting `node --loader ts-node/esm src/server/server.ts`
(node:224025) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
SyntaxError: Unexpected identifier
    at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:139:18)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:236:14)
[nodemon] app crashed - waiting for file changes before starting...

OS: Ubuntu 22.04 system.
Node version: v16.13.2
Any help would be appreciated!