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

Craft Cloud Compatibility? #121

Open
AdamChlan opened this issue Oct 29, 2024 · 3 comments
Open

Craft Cloud Compatibility? #121

AdamChlan opened this issue Oct 29, 2024 · 3 comments
Labels
Bug Report Something isn't working

Comments

@AdamChlan
Copy link

I'm curious if this plugin is compatible with Craft Cloud. I have a site set up on Craft Cloud, and the plugin works well when running in my local environment, but not on Craft Cloud. I am noticing a couple of the JS files the plugin is trying to call are 404.

Screenshot 2024-10-29 at 1 57 21 PM
@lindseydiloreto
Copy link
Collaborator

Great question! I haven't tested with Craft Cloud yet, so I guess we're finding out now that there are some compatibility issues.

Are you doing anything unusual with AJAX or Sprig? If not, take a look at these docs on Required JS Assets to see if there are any helpful workarounds in there. Perhaps you could prevent the automatic loading, and manually load those files instead.

@lindseydiloreto lindseydiloreto added the Bug Report Something isn't working label Nov 6, 2024
@lindseydiloreto
Copy link
Collaborator

I suspect Craft Cloud is having trouble loading the JS files for these two lines...

<script src="https://yourwebsite.com/cpresources/[HASH]/js/googlemaps.js" defer></script>
<script src="https://yourwebsite.com/cpresources/[HASH]/js/dynamicmap.js" defer></script>

I'll dig in and let you know what I find. 👍

@AdamChlan
Copy link
Author

@lindseydiloreto no, we are not doing anything unusual with AJAX or sprig on these templates. Any findings so far?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants