添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
好帅的砖头  ·  TemplateDoesNotExist ...·  2 月前    · 
有胆有识的勺子  ·  FATAL: Ident ...·  5 月前    · 
打酱油的香槟  ·  Help And Training ...·  7 月前    · 

Issue Description: What’s happening?

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.

Reproduce the Issue: What steps can someone take to replicate the problem?

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.

    Expected Behavior: What did you expect to happen?

    make full migration from one environment to another

    Actual Behavior: What actually happened?

    crash seconds later when I run migration commit or status or deploy

    More details or screenshot

    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.