The codepen is broken
adriaandotcom opened this issue · 2 comments
adriaandotcom commented
The code pen (https://codepen.io/lyuanqing/pen/VQQVry) is broken:
Uncaught ReferenceError: lineClamp is not defined at pen.js:2 (anonymous) @ pen.js:2
https://wzrd.in/standalone/line-clamp@latest returns a 504 Gateway Time-out
johnhunter commented
Cloning the repo, running npm i
and npm start
. I found
"lineClamp is not defined"
Seems the script src did not load.
Fix was to use a relative path
<script src="./bundle.js"></script>
yuanqing commented
Have edited the CodePen to use bundle.run instead, and it seems to work now