Am using ASO and google-play-scraper 10.0.0, but I kept getting the error below. I need help fixing it.
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/choxxy/development/aso-dev/node_modules/google-play-scraper/index.js from /Users/choxxy/development/aso-dev/node_modules/aso/lib/stores/gplay.js not supported.
Instead change the require of index.js in /Users/choxxy/development/aso-dev/node_modules/aso/lib/stores/gplay.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/Users/choxxy/development/aso-dev/node_modules/aso/lib/stores/gplay.js:4:15)
at Object. (/Users/choxxy/development/aso-dev/node_modules/aso/index.js:7:12)
at Object. (/Users/choxxy/development/aso-dev/index.js:1:13) {
code: 'ERR_REQUIRE_ESM'
}
Am using ASO and google-play-scraper 10.0.0, but I kept getting the error below. I need help fixing it.
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/choxxy/development/aso-dev/node_modules/google-play-scraper/index.js from /Users/choxxy/development/aso-dev/node_modules/aso/lib/stores/gplay.js not supported. Instead change the require of index.js in /Users/choxxy/development/aso-dev/node_modules/aso/lib/stores/gplay.js to a dynamic import() which is available in all CommonJS modules. at Object. (/Users/choxxy/development/aso-dev/node_modules/aso/lib/stores/gplay.js:4:15)
at Object. (/Users/choxxy/development/aso-dev/node_modules/aso/index.js:7:12)
at Object. (/Users/choxxy/development/aso-dev/index.js:1:13) {
code: 'ERR_REQUIRE_ESM'
}