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

Is this still working? #756

Open
piketres opened this issue Aug 27, 2024 · 2 comments
Open

Is this still working? #756

piketres opened this issue Aug 27, 2024 · 2 comments

Comments

@piketres
Copy link

Not sure what changed but I keep getting a "Reference Error: Instafeed is not defined"

Compared to the guide, instafeed.min.js needs to be declared as "type=module". Doing this change and keeping the rest as before there is this new "ReferenceError: Instafeed is not defined" error.

I saw on a post for something else that this might be due to calling the script before the source has been loaded. I declare the source script in the head with no changes and I also tried delaying the call with a jQuery.read. Still the same error.

I´m not fluent on web development so there might be an easy fix on the way to declare the new Instafeed. Or I might be completely wrong and it´s still working.

@stevenschobert
Copy link
Owner

Howdy!

I haven’t made any updates to this library in a few years, and as far as I know should still be working.

That error message you mentioned sounds related to ESM Modules to me.

I think you can get that error when an ESM module tries to require a non-ESM module.

Are you using a build system or anything to compile/bundle your assets? An upgrade of a build system could have maybe switched a default to use ESM?

@piketres
Copy link
Author

piketres commented Aug 28, 2024

First, thanks for answering!

I´m using the web-page builder from ionos which is super limited! You can however embed html/javascript and that´s what I did in the past. It was working for a long time. Since a few months back it stopped working with this message.

No idea of what ESM Modules are (as stated I don´t know much on web development, as I´m a backend developer) and no idea if I can do something to change it from this limited web-page builder. I will dig a little bit into the subject.

I also tried it in codepen with the same output. But I don´t know if it worked before.

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

2 participants