Subql Cli failed issue Error: require() of ES Module.. #1211
Unanswered
jiqiang90
asked this question in
SDK issues
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you have encounter with issue when using subql command line tool,
this is due to one of the cli tool dependencies
node-fetch
has been updated and only support ES module from 3.x.xTo fix this:
npm
for install, you can change toyarn
to fix this issue.node-fetch: 2.6.7
to your package.json, also useresolution
to fix the version.Beta Was this translation helpful? Give feedback.
All reactions