Cannot find module 'googleapis'

I am getting this error some times.
BTW, it seems the error trace changed recently (today) and it doesn’t seems to resolve after some time.
googleapi is installed in npm and everything works when it works, but after editing the backend code the problems begin, and the whole site is down.
workaround is to remove googleapi and related code solve

tnx
here is the error trace

Error loading web module backend/mybackend.js: Both resolutions failed at _load! [] Original resolver: Both resolutions failed at _load! [] Original resolver: Cannot find module 'googleapis'

Error loading web module backend/mybackend.js: Both resolutions failed at _load! [] Original resolver: Both resolutions failed at _load! [] Original resolver: Cannot find module 'googleapis' Require stack: - /user-code/backend/mybackend.js - /user-code/stubmodule-that-does-the-require.js - /cloud-runtime-code/node_modules/scoped-require/index.js - /cloud-runtime-code/packages/elementory/cloud-runtime/factories.js - /cloud-runtime-code/packages/elementory/cloud-runtime/create-app.js - /cloud-runtime-code/packages/elementory/cloud-runtime/cloud-grid-runner.js YarnPNP: Both resolutions failed at _resolveFilename! [{"moduleFunctionName":"_load","codePath":"yarnPNP","request":"googleapis"},{"moduleFunctionName":"_resolveFilename","codePath":"yarnPNP","request":"googleapis"}] Original resolver: Cannot find module 'googleapis' Require stack: - /user-code/backend/mybackend.js - /user-code/stubmodule-that-does-the-require.js - /cloud-runtime-code/node_modules/scoped-require/index.js - /cloud-runtime-code/packages/elementory/cloud-runtime/factories.js - /cloud-runtime-code/packages/elementory/cloud-runtime/create-app.js - /cloud-runtime-code/packages/elementory/cloud-runtime/cloud-grid-runner.js YarnPNP: Your application tried to access googleapis, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.

Can you share example code that reproduces the issue?

this is just from an new blank site, isttelled googpleapi npm and created backendfile.js
running ttt function from the debugger fails with the error, not even actually using googleapi

here is backend/backendfile.js

the project id is f7394e59-9c60-457a-9172-9db12cfcfa13 if you have access to it

/************
backendfile.js
*************/

const { google } = require(‘googleapis’);

export async function ttt(params) {

return 'foo'

}

Everything works on my test-environment…

2024-02-20 20_47_36-Wix Website-Editor _ Fitness-Studio-2.0

Still broken on my environment.
at the 17th-19th the error was
[“Error loading web module backend/mybackend.jsw: Cannot find module ‘googleapis’\nRequire stack:\n- /user-code/backend/mybackend.jsw\n- /user-code/stubmodule-that-does-the-require.js\n- /cloud-runtime-code/node_modules/scoped-require/index.js\n- /cloud-runtime-code/packages/elementory/cloud-runtime/factories.js\n- /cloud-runtime-code/packages/elementory/cloud-runtime/create-app.js\n- /cloud-runtime-code/packages/elementory/cloud-runtime/cloud-grid-runner.js”]

and it resolved after some time, but from the 20th the error trace is the one from my first message, and its not resolving. its begins after editing the code.
can someone look at my environment?
Tnx!

maybe another hint, the linter likes
const { google } = require(‘googleapi’)
and the code pass the require statement and run up to actually using the google object
const auth = new google.auth.GoogleAuth(…)
and fail
“Cannot read properties of undefined (reading ‘auth’)”
as the object is not defined.

maybe some name collision issue?