Running yarn nx database:init twenty-server fails with the following error message:
❯ yarn nx database:init twenty-server
> nx run twenty-server:"database:init"
Performed 'create schema "public"' successfully
Performed 'create schema "metadata"' successfully
Performed 'create schema "core"' successfully
Performed 'create extension pg_graphql' successfully
Performed 'create extension "uuid-ossp"' successfully
Performed 'create extension "postgres_fdw"' successfully
Failed to perform 'create extension "wrappers"': QueryFailedError: could not open extension control file "/opt/homebrew/share/postgresql@14/extension/wrappers.control": No such file or directory
Failed to perform 'create extension "mysql_fdw"': QueryFailedError: could not open extension control file "/opt/homebrew/share/postgresql@14/extension/mysql_fdw.control": No such file or directory
Failed to perform 'create airtable "wrappers"': QueryFailedError: function airtable_fdw_handler() does not exist
Failed to perform 'create bigQuery "wrappers"': QueryFailedError: function big_query_fdw_handler() does not exist
Failed to perform 'create clickHouse "wrappers"': QueryFailedError: function click_house_fdw_handler() does not exist
Failed to perform 'create firebase "wrappers"': QueryFailedError: function firebase_fdw_handler() does not exist
Failed to perform 'create logflare "wrappers"': QueryFailedError: function logflare_fdw_handler() does not exist
Failed to perform 'create s3 "wrappers"': QueryFailedError: function s3_fdw_handler() does not exist
Failed to perform 'create stripe "wrappers"': QueryFailedError: function stripe_fdw_handler() does not exist
Performed 'inflect names for graphql' successfully
Performed 'create function graphql' successfully
Failed to perform 'create extension "wrappers"src/core/auth/services/auth.service.ts:14:43 - error TS2307: Cannot find module 'twenty-emails' or its corresponding type declarations.
14 import { PasswordUpdateNotifyEmail } from 'twenty-emails';
~~~~~~~~~~~~~~~
src/core/auth/services/token.service.ts:22:40 - error TS2307: Cannot find module 'twenty-emails' or its corresponding type declarations.
22 import { PasswordResetLinkEmail } from 'twenty-emails';
~~~~~~~~~~~~~~~
src/workspace/cron/clean-inactive-workspaces/clean-inactive-workspace.job.ts:9:8 - error TS2307: Cannot find module 'twenty-emails' or its corresponding type declarations.
9 } from 'twenty-emails';
~~~~~~~~~~~~~~~
Found 3 error(s).
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> NX Ran target database:init for project twenty-server (25s)
✖ 1/1 failed
✔ 0/1 succeeded [0 read from cache]
Expected behavior
According to the documentation, I should be able to run the servers after this command. I would expect it not to fail.
Bug Description
Running
yarn nx database:init twenty-server
fails with the following error message:Expected behavior
According to the documentation, I should be able to run the servers after this command. I would expect it not to fail.
Technical inputs
I'm running it on an M1 Max, macOS 14.2.1.