Module not found when trying to use iFrameResizer via CDN link
Closed this issue · 1 comments
crevulus commented
Describe the bug
I get a module not found error on line 1 of index.js when I try to import via a CDN link. That then means window.iFrameResize
throws an uncaught exception error.
To Reproduce
Steps to reproduce the behavior:
- Open the index.html of any project.
- Add an iframe with a unique ID
- Add a script tag with the CDN link (https://unpkg.com/iframe-resizer@4.3.2/index.js or https://cdn.jsdelivr.net/npm/iframe-resizer@4.2.11/index.min.js)
Expected behavior
window.iFrameResize should be accessible
Desktop (please complete the following information):
- OS: MacOS 10
- Browser: Chrome
- Version: 97
crevulus commented
Found the correct CDN link, for anyone coming here: https://cdn.jsdelivr.net/npm/iframe-resizer@4.2.11/js/iframeResizer.min.js