Error after upgrading package

After I have upgraded a package my app stop working, even rewinding to previous versions. The error on console is:

/rbd/pnpm-volume/97f90010-ff21-48b9-a31d-29c610495347/node_modules/.registry.npmjs.org/node-fetch/3.0.0-beta.9/node_modules/node-fetch/dist/index.cjs:177
async function * formDataIterator(form, boundary) {
^
SyntaxError: Unexpected token *
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/rbd/pnpm-volume/97f90010-ff21-48b9-a31d-29c610495347/node_modules/.registry.npmjs.org/ky-universal/0.8.2/ky@0.23.0/node_modules/ky-universal/index.js:2:15)
at Module._compile (module.js:653:30)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)

/rbd/pnpm-volume/97f90010-ff21-48b9-a31d-29c610495347/node_modules/.registry.npmjs.org/node-fetch/3.0.0-beta.9/node_modules/node-fetch/dist/index.cjs:177
async function * formDataIterator(form, boundary) {
^
SyntaxError: Unexpected token *
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/rbd/pnpm-volume/97f90010-ff21-48b9-a31d-29c610495347/node_modules/.registry.npmjs.org/ky-universal/0.8.2/ky@0.23.0/node_modules/ky-universal/index.js:2:15)
at Module._compile (module.js:653:30)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)

What package is this? And why pnpm instead of npm?

“What package is this? And why pnpm instead of npm?”
No idea, it started after I upgraded the package imdb-api from 3.1.2 to version 4.2.0

Also, I forgot to point what is the app:

It looks like is working fine right now.

The cause of the error is this line commented:
“//imdb-api”: “migrating to version 4.2.0 is leading to errors”,

The file package.json do not allow comented out lines inside “dependencies”, on other parts of the file works fine.

Thanks for helping

3 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.