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

Can't get plugins to work #4

Open
LaurentDelcambre opened this issue Mar 21, 2019 · 5 comments
Open

Can't get plugins to work #4

LaurentDelcambre opened this issue Mar 21, 2019 · 5 comments

Comments

@LaurentDelcambre
Copy link

Hi,

Thanks for sharing!

I am trying to use the interaction plugin. I added the interaction.min.js to the zip in the static resource but when I add this line it stops working:
loadScript(this, FullCalendarJS + '/interaction.min.js')

It was the same thing with the daygrid plugin.

Did you manage to get any plugin to work?

Cheers

@Gurenax
Copy link
Owner

Gurenax commented Mar 27, 2019

Hi, did you bundle all your plugins in the FullCalendarJS zip file?

@LaurentDelcambre
Copy link
Author

Yes I did. It always stops working on loadScript
What about yourself?

@Gurenax
Copy link
Owner

Gurenax commented Apr 6, 2019

Mine works ok. This is what my zip file looks like:
https://pasteboard.co/I8PlWH5.png

@jared201
Copy link

what does the zip file looks like inside?

@jared201
Copy link

jared201 commented Sep 17, 2019

Yes I did. It always stops working on loadScript
What about yourself?

I think the loadScript() has issues and Salesforce never tested it on JS libraries with multiple dependencies. The workaround is to do recursion on renderedCallback() when the Promise catches an exception. Anyway, Promises chain is not always guaranteed to resolve.

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

3 participants