Error Cannot find module 'wix-router' in 'public/pages/x543m.js'

What “corvid tutorial article” are you referencing?

As state in the router API documentation :
The code for both routers and data binding router hooks is defined in the routers.js file that you set up in the Code Files’ Backend section of the Corvid Sidebar .

If you want to redirect from a client page, you can use the wix-location.to() function