Wix CLI 1.1.61 has breaking changes, though there is no documentation on the new commands and how to migrate correctly

After upgrading to CLI 1.1.61, I now get this error when running “wix app dev”. it seem like “wix dev” has been deprecated, though my project now needs to be updated to support the new format. I can’t find any reference or documentation to this upgrade which has breaking changes. All references on Wix website still points to using “wix dev”. Can you point me to directions on migrating to Wix CLI 1.1.61?

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.

Hey,

Yeah, I see what’s happening here. Let’s sort it out.

First, just to confirm—you’re building a website, not an app, right? If so, that update message probably threw you off.

It suggested running something like:

npm i @wix/cli@latest @wix/cli-app@latest

Right?

And now you’ve got @wix/cli-app in your project, which wasn’t there before. That’s the issue.

There’s a bug in that message—we’re already working on fixing it. You don’t need @wix/cli-app. Moreover you also don’t need @wix/cli installed in your project, since you have it installed globally (as ask in our docs).

So basically you need to remove both of the packages (@wix/cli and @wix/cli-app) in your project and run global update of cli:

npm i -g @wix/cli@latest

This should do the trick and your wix dev command should work as before.

Let me know if you hit any snags.

1 Like

Nice work @Artem_Demo! You are exactly right. the upgrade message in the terminal says,

Update available 1.1.60 → 1.1.61 │
│ Run npm i @wix/cli@latest @wix/cli-app@latest to update

I un-instilled Wix, then just ran npm i -g @wix/cli@latest. Now I’m on version 1.1.62 and all seems to be back to normal.

now, the the whole point of the upgrade was to see if it fixed, “Cannot find module ‘wix-web-module’ or its corresponding type declarations.” in Visual Studio, even after upgrading and restarting the TS Server. My code seems to run fine at runtime, though still concerning that I get this in development

Thanks!