Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: FlowRouterTitle is not a constructor #14

Open
carlosalvidrez opened this issue Nov 21, 2022 · 1 comment
Open

TypeError: FlowRouterTitle is not a constructor #14

carlosalvidrez opened this issue Nov 21, 2022 · 1 comment

Comments

@carlosalvidrez
Copy link

carlosalvidrez commented Nov 21, 2022

Trying to use this library for the first time.
The extra package (dependency) works without issues.
I can also import this package.
I removed the original FlowRouter packages (as per the instructions).

But when I add this line to instantiate it, as per the docs, I get the error "TypeError: FlowRouterTitle is not a constructor"

import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
import {FlowRouterTitle} from 'meteor/ostrio:flow-router-title';
[I DECLARE SOME ROUTES HERE]
new FlowRouterTitle(FlowRouter);  <-- THROWS ERROR

Latest flow-router-title version
Meteor 2.8.1 (latest)
Chrome
Mac

@dr-dimitru
Copy link
Member

Hello @carlosalvidrez,

This lib missing typescipt definitions, use it outside of .ts file, otherwise you may need to submit a PR with TS definitions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants