kadirahq / flow-router

Carefully Designed Client Side Router for Meteor
MIT License
1.09k stars 195 forks source link

Getting Started guide in README.md does not mention importing router.js #738

Closed johnpitchko closed 2 months ago

johnpitchko commented 5 years ago

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?