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

@marisamyrick In the page documentation that you refer to, it states:

When adding a router:

  • Your router’s router() and sitemap() functions are added in a routers.js file with sample code for a simple routing scenario. The routers.js file is found in the Code Files’s Backend section of the Corvid Sidebar.

Please note, that as stated in the documentation, the wix-router API is not available in frontend code. It can only be used in backend code in a file called routers.js

The import statement is only valid in the routers.js backend file.