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

Getting 'Uncaught SyntaxError: Unexpected token <' with Meteor + React #171

Open
etmarch opened this issue Jan 19, 2016 · 2 comments
Open
Labels

Comments

@etmarch
Copy link

etmarch commented Jan 19, 2016

I've tried both the npm module and the Meteor package, and no matter where I place the <script src="holder.js" defer></script> call (end of , inside the , I'm not sure how to load a script from within a react component however) , the issue never goes away.

Also, besides the above error, the placeholder images never display. I am using this html code inside one of my components <img id="testy" src="holder.js/300x200?theme=sky"/>

Do you have any idea what this could be?

@imsky
Copy link
Owner

imsky commented Jan 19, 2016

React is tricky - you have to call Holder.run when the component mounts. i'll look into adding a React example

@imsky imsky added the bug label Jan 19, 2016
@arnil6585
Copy link

Welcome to Gboard clipboard, any text you copy will be saved here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants