-
Notifications
You must be signed in to change notification settings - Fork 47
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
(node:11916) UnhandledPromiseRejectionWarning: TypeError: route.match is not a function #286
Comments
Can you show me how you are calling reload? My guess is a route is being passed that is not of type string. Oddly enough I don't have a type check for that option or unit test it seems. Mostly likely a bug, but need to confirm on my end. Your confirmation would also be good evidence. |
I will do some more testing on this, and update you on my progress. You could add if (route !== typeof 'string') return; in the code provided initially which then would in my case trigger line 39 return reject(new Error('Lack of/invalid arguments provided to reload')) More update: |
The You can use templating or server side injection to put it on every page. |
Code in question:
The text was updated successfully, but these errors were encountered: