Cannot read property 'sideBySide' of undefined #102
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I need to do some transitions between pages where the new content slides up over the old.
if i use this code https://unpkg.com/pjax/pjax.js and the switches example code then I get "Uncaught TypeError: Cannot read property 'sideBySide' of undefined".
Can you update https://unpkg.com/pjax/pjax.js so it works plz ! Thanks
This issue should be already fixed in the repo.
We're currently actively working on fixing as many bugs as possible and closing old issues. When we're done, a new version will be pushed to NPM (which is where unpkg pulls from).
In the meantime, you can clone the repo and build it yourself by running
npm run standalone.Version 0.2.5 has been released to NPM.
I'm still gettig this issue "Cannot read property 'sideBySide' of undefined", under version 0.2.5. Thank you in advance for your help.
@jbrhel Can you post your code? Modifying
example/example.jsto use thesideBySideswitch function works as expected under 0.2.5.@robinnorth Thank you for your comment. My code was:
So I replaced this by Pjax and it's working now.
Hi @jbrhel, you're welcome! You can actually simplify your
switchesconfig even more to just'#content-main': Pjax.switches.sideBySide