"Cannot find module 'wix-web-module' or its corresponding type declarations."

I’m getting “Cannot find module ‘wix-web-module’ or its corresponding type declarations” even though I’ve upgraded all the backend files to .web.js and added import { Permissions, webMethod } from ‘wix-web-module’;

I’m now trying update my Wix CLI to the latest version 1.1.61, hoping that will sync the wix types. though the entire command structure has changed. “wix dev” and “wix preview” are not recognized. there seems to be no documentation, as all the documents I can find reference the old commands that are supported.

What is going on?!

new CLI commands seem to be something like:

wix app dev

:heavy_multiplication_x: Invalid configuration found at wix.config.json:

The following errors were found:

  • appId: Required

  • projectId: Required

  • Unrecognized key(s) in object: ‘siteId’, ‘uiVersion’

:bulb: Fix the errors above for your configurations to be applied successfully.

I am also getting this error Cannot find module ‘wix-window-frontend’ or its corresponding type declaration.

I have no clue how to fix this and I need help.

Hi, @asmita_Dani !!

It would really help the community assist you better if you could share some specific code examples. Of course, if your code includes any sensitive or private information, please make sure to temporarily replace those parts before sharing. :innocent: