Forum Discussion
Iwo_Misztal
Dec 07, 2020Copper Contributor
SPFx Extensions is not loading when accessing Documents Page.
I've got an SPFx Extension which works fine until user pick any List from QuickLaunch Menu. It throws an error that reads: VM18:1 Uncaught SyntaxError: Unexpected token r in JSON at position 0 sp-p...
ValerasNarbutas
Jan 05, 2021Brass Contributor
Iwo_Misztal try to add extention to the bottom/footer of the page, usually it is layout or JS which are loaded by default issue, I document view you might need to preload/wait for something else to complete first.
- Iwo_MisztalJan 29, 2021Copper Contributor
Thank you so much for your reply! Unfortunatelly, even if I attach the extension to bottom placeholder it doesn't fix the issue. I worry it has something to do with the Documents tab itself. I feel like the error triggers before my code is even loaded and prevents it from beeing executed (since if I am already on Documents tab and refresh the page, the extension works).
Regards,
Iwo