deep-foundation / deep-foundation/dev

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.

Open
#216 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
20
Forks
18
PR merge metrics
No merged PRs in 30d

Description

```shell
tand@tand-HP-EliteBook-Folio-1040-G1:~/Code/deep/dev$ npm run local-migrate

> @deep-foundation/dev@0.0.21 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/deeplinks@0.0.331 migrate
> npm run package:build && npx migrate@latest up --matches '*.js'

> @deep-foundation/deeplinks@0.0.331 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 ()
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'
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.