imsky / imsky/holder

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

Open
#171 2 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
5.8k
Forks
585
PR merge metrics
No merged PRs in 30d

Description

I've tried both the npm module and the Meteor package, and no matter where I place the `` 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 ``

Do you have any idea what this could be?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with the npm module and the Meteor package in the reported Meteor + React setup. Inspect how the holder.js script is loaded and how the component renders the `` element using `holder.js/300x200?theme=sky`. Done means the syntax error is gone and the placeholder image displays.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.