Skip to content

Unable to run postgres-meta development #575

Open
@Amogh-Bharadwaj

Description

@Amogh-Bharadwaj

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/[email protected] 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/[email protected] db:clean
> cd test/db && docker-compose down

Removing network db_default
WARNING: Network db_default not found.

> @supabase/[email protected] 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions