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
When running npx directus-migrator -s development -t staging I get the following error, this is the first time I'm using this library, followed the docs.
2023-06-18 [git:[email protected]] info: Migrating Schema Started
/Users/miguelstevens/.npm/_npx/2f9ed6e235e43e28/node_modules/directus-migrator/dist/utils/CRUD.js:48
const response = yield fetch(url, {
^
ReferenceError: fetch is not defined
at /Users/miguelstevens/.npm/_npx/2f9ed6e235e43e28/node_modules/directus-migrator/dist/utils/CRUD.js:48:26
at Generator.next (<anonymous>)
at /Users/miguelstevens/.npm/_npx/2f9ed6e235e43e28/node_modules/directus-migrator/dist/utils/CRUD.js:8:71
at new Promise (<anonymous>)
at __awaiter (/Users/miguelstevens/.npm/_npx/2f9ed6e235e43e28/node_modules/directus-migrator/dist/utils/CRUD.js:4:12)
at CRUD (/Users/miguelstevens/.npm/_npx/2f9ed6e235e43e28/node_modules/directus-migrator/dist/utils/CRUD.js:45:12)
at /Users/miguelstevens/.npm/_npx/2f9ed6e235e43e28/node_modules/directus-migrator/dist/migrators/schema-migration.js:69:51
at Generator.next (<anonymous>)
at /Users/miguelstevens/.npm/_npx/2f9ed6e235e43e28/node_modules/directus-migrator/dist/migrators/schema-migration.js:31:71
at new Promise (<anonymous>)
The text was updated successfully, but these errors were encountered:
notflip
changed the title
Fetch is not defined
Fetch is not defined, when running migrator
Jun 18, 2023
@CodingButter I have the same issue while I am testing locally with my different instances of the directus with different databases
Even though I am using node v18.16
Let me know if any other information is needed to resolve this issue.
When running
npx directus-migrator -s development -t staging
I get the following error, this is the first time I'm using this library, followed the docs.This is my config
This is the error
The text was updated successfully, but these errors were encountered: