Closed tcastelli closed 9 years ago
Have you tried to trace the code?
I don't know exactly why this is happening but i found a solution, currently, what i was trying, it was just to disable the verbose so i did this
Router.configure({
trackPageView: true,
'preload': {
/*
| Parameters can be a string (file path) or an array of strings
*/
// Added in v1.2.1 - this one works only in Router.Configure!
'verbose': false, // Show loading messages in console,
}
});
And the rest of the things were specified in the route itself. (I got the error by doing so). To make it work, it seems that there needs to be something for preloader to do ath the global level, but since i didnt want to add any libraries or anything on the global level, i just added
// CSS style(s) to load
'styles' : '' // or []
and now it's working. Hope it helps to track down the issue
Oh, ok, it's more clear now - let check that...
Having the same issue, and same solution as @tcastelli works.
Fixed with v1.2.3.
Thanks guys! :)
Thanks for working on this despite it being an easy bug to get around! Just wanted to let you know that it still isn't working though - still getting the same error with the latest version (1.2.3)
So, to clear it up, the bug occurs only if you DON'T set any styles to be loaded, correct?
That's correct.
styles can be empty (ie. '' or []), but it needs to be included along with whatever sync, or async in order to work.
It should be fixed now :)
Works perfectly now, thanks!
Hi there, I've just updated the package, and I got this exception on all browsers
My route is defined like this (it was working correctly before the update)