You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/tand/Code/deep/dev/packages/deeplinks/migrations/1616701513782-links.js from /home/tand/Code/deep/dev/node_modules/migrate/lib/load-migrations.js not supported. Instead change the require of 1616701513782-links.js in /home/tand/Code/deep/dev/node_modules/migrate/lib/load-migrations.js to a dynamic import() which is available in all CommonJS modules.
#216
Open
Tand-Anthros opened this issue
Mar 3, 2024
· 0 comments
tand@tand-HP-EliteBook-Folio-1040-G1:~/Code/deep/dev$ npm run local-migrate
> @deep-foundation/[email protected] local-migrate
>export NEXT_PUBLIC_ENGINES=0;export NEXT_PUBLIC_HIDEPATH=1;export npm_config_yes=true;export JWT_SECRET="{\"type\":\"HS256\",\"key\":\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\"}";export MIGRATIONS_ID_TYPE_SQL=bigint;export MIGRATIONS_ID_TYPE_GQL=bigint;export MIGRATIONS_HASURA_PATH=localhost:8080;export MIGRATIONS_HASURA_SSL=0;export MIGRATIONS_HASURA_SECRET=myadminsecretkey;export NEXT_PUBLIC_DEEPLINKS_SERVER=http://localhost:3007;export NEXT_PUBLIC_GQL_PATH=localhost:3006/gql;export NEXT_PUBLIC_GQL_SSL=0 DEEPLINKS_HASURA_PATH=localhost:8080;export DEEPLINKS_HASURA_SSL=0;export MIGRATIONS_DEEPLINKS_APP_URL=http://host.docker.internal:3007 export MIGRATIONS_DEEPLINKS_URL=http://host.docker.internal:3006;cd packages/deeplinks && npm run migrate
> @deep-foundation/[email protected] migrate
> npm run package:build && npx migrate@latest up --matches '*.js'> @deep-foundation/[email protected] package:build
> tsc --project tsconfig.json
error : Error [ERR_REQUIRE_ESM]: require() of ES Module /home/tand/Code/deep/dev/packages/deeplinks/migrations/1616701513782-links.js from /home/tand/Code/deep/dev/node_modules/migrate/lib/load-migrations.js not supported.
Instead change the require of 1616701513782-links.js in /home/tand/Code/deep/dev/node_modules/migrate/lib/load-migrations.js to a dynamic import() which is available in all CommonJS modules.
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/tand/Code/deep/dev/packages/deeplinks/migrations/1616701513782-links.js from /home/tand/Code/deep/dev/node_modules/migrate/lib/load-migrations.js not supported.
Instead change the require of 1616701513782-links.js in /home/tand/Code/deep/dev/node_modules/migrate/lib/load-migrations.js to a dynamic import() which is available in all CommonJS modules.
at /home/tand/Code/deep/dev/node_modules/migrate/lib/load-migrations.js:44:17
at Array.map (<anonymous>)
at /home/tand/Code/deep/dev/node_modules/migrate/lib/load-migrations.js:40:30
at FSReqCallback.oncomplete (node:fs:192:23) {
code: 'ERR_REQUIRE_ESM'
}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: