Probably a dumb question, but does one need to import '../lib/router.js'; in their /client/main.js? In the Getting Started guide, there is no mention of the need to import, only to code the /lib/router.js file.
However, when I followed this advice I received the error
There is no route for the path: – "/blog/my-post-id"
When I import router.js into /client/main.js it seemed to work correctly.
Am I doing something wrong, or is there a step in the guide missing?
Probably a dumb question, but does one need to
import '../lib/router.js';
in their /client/main.js? In the Getting Started guide, there is no mention of the need to import, only to code the /lib/router.js file.However, when I followed this advice I received the error
When I import router.js into /client/main.js it seemed to work correctly.
Am I doing something wrong, or is there a step in the guide missing?