Facing the issue for ERR_REQUIRE_ESM
error when running the require('wrap-ansi')
when type vulcan catalog
#254
Labels
ERR_REQUIRE_ESM
error when running the require('wrap-ansi')
when type vulcan catalog
#254
Environment
Version:
OS: macOS
What's wrong?
When running
vulcan catalog
after installing the@vulcan-sql/catalog-server
package to0.7.0
. Facing the issue forERR_REQUIRE_ESM
error when running therequire('wrap-ansi')
, like the below screenshot:The reason is that
wrap-ansi
install the latest version like the above is8.1.0
after running theyarn why wrap-ansi
What's the correct behavior?
The correct be should be normal and show
Ready on http://localhost:4200
Reproducing steps
@vulcan-sql/catalog-server
package to0.7.0
in your projectvulcan catalog
Solution
The solution is to make the
@vulcan-sql/catalog-server
install thewrap-ansi
at7.0.0
.The current workaround
The workaround from @andreashimin shared.
node_modules
package.json
in your projectyarn
ornpm
to install again.The text was updated successfully, but these errors were encountered: