Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing the issue for ERR_REQUIRE_ESM error when running the require('wrap-ansi') when type vulcan catalog #254

Open
kokokuo opened this issue Jul 25, 2023 · 1 comment
Labels
needs-triage type/bug Something went wrong

Comments

@kokokuo
Copy link
Contributor

kokokuo commented Jul 25, 2023

Environment

  • Version:

    cli version: 0.7.0
    core version: 0.7.0
    build version: 0.7.0
    serve version: 0.7.0
    
  • OS: macOS

What's wrong?

When running vulcan catalog after installing the @vulcan-sql/catalog-server package to 0.7.0. Facing the issue for ERR_REQUIRE_ESM error when running the require('wrap-ansi'), like the below screenshot:

截圖 2023-07-25 下午5 39 37

The reason is that wrap-ansi install the latest version like the above is 8.1.0 after running the yarn why wrap-ansi

截圖 2023-07-25 下午5 50 14

What's the correct behavior?

The correct be should be normal and show Ready on http://localhost:4200

Reproducing steps

  1. @vulcan-sql/catalog-server package to 0.7.0 in your project
  2. vulcan catalog

Solution

The solution is to make the @vulcan-sql/catalog-server install the wrap-ansi at 7.0.0.

The current workaround

The workaround from @andreashimin shared.

  1. Remove the node_modules
  2. Add the below code at package.json in your project
{
 ...
 "resolutions": {
    "wrap-ansi": "7.0.0"
  }
}
  1. Run yarn or npm to install again.
@kokokuo kokokuo added type/bug Something went wrong needs-triage labels Jul 25, 2023
@kokokuo
Copy link
Contributor Author

kokokuo commented Jul 26, 2023

Hi guys, if you are also facing the issue, you can use the workaround mentioned above to solve it for now. We will fix it and release a new version as soon as possible! Hope you enjoy using VulcanSQL!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage type/bug Something went wrong
Projects
None yet
Development

No branches or pull requests

1 participant