I’m trying to run 8base migration commit but always failed and returns
error: Compilation failed:
Error: “node_modules/
@types
/babel__traverse/index.d.ts” (314,10): An index signature parameter type must be either ‘string’ or ‘number’.
Error: “node_modules/
@types
/node/events.d.ts” (109,43): A rest parameter must be of an array type.
Error: “/var/task/node_modules/
@types
/express-serve-static-core/index.d.ts” (496,18): Interface ‘Response’ incorrectly extends interface ‘ServerResponse’.
Property ‘req’ is optional in type ‘Response’ but required in type ‘ServerResponse’.
also, it happens too when I run migration status.
I’m in dev environment and I created tables and fields, so
8base migration generate —> ok
8base environment set -n “qa” —> ok
8base migration commit —> boom! crashed!
I tried to run 8base deploy and fails as well.
make full migration from one environment to another
crash seconds later when I run migration commit or status or deploy
I have nodejs 20.11.0
8base.yml hast nodeVersion:20
This error starts 1moth ago when 8base update his cli to 0.1.0 version
I really appreciate your help!
Hi,
@mavendano
; Oscar Corcho here from 8base support. Please provide me with your workspace ID and the affected environment. Usually, this error is related to a problem with a library, please add
“
@types
/babel__traverse”: “^7.20.5” to the package.json, delete node_modules. and install it again.
Ok, I checked, and apparently, you have Husky Library installed on your code. Keep the babel_traverse library. Do the following steps. before, use the migration commit command.
rm -rf node_modules package-lock.json && npm cache clean --force && npm cache verify && npm I, and execute the 8base migration commit -m FULL command after that.
The problem is a problem in the compilation of your code.