yuanqing/line-clamp

The codepen is broken

adriaandotcom opened this issue · 2 comments

The code pen (https://codepen.io/lyuanqing/pen/VQQVry) is broken:

image

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

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>

Have edited the CodePen to use bundle.run instead, and it seems to work now