Can't import iframe-resizer with webpack
See original GitHub issueWhen I try to import the iframe-resizer
module into my webpack project, using syntax require('iframe-resizer)
or import iframe-resizer
, I got the following error:
ERROR in ./node_modules/iframe-resizer/index.js
Module not found: Error: Can't resolve './js' in '/home/antoine/swh/swh-environment/swh-web/node_modules/iframe-resizer'
@ ./node_modules/iframe-resizer/index.js 3:17-32
@ ./swh/web/assets/src/bundles/vendors/index.js
@ multi bundles/vendors/index.js
My guess is that the index file inside the js
folder is named Index.js
but it should be named index.js
(no uppercase characters).
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Can't import iframe-resizer with webpack · Issue #674 - GitHub
When I try to import the iframe-resizer module into my webpack project, using syntax require('iframe-resizer) or import iframe-resizer, ...
Read more >iframe-resizer - npm
This library enables the automatic resizing of the height and width of both same and cross domain iFrames to fit their contained content....
Read more >How to correct insert iframeResizer.contentWindow.js in jsf?
I try to fit iframe size with content and use lib https://github.com/davidjbradshaw/iframe-resizer.
Read more >iFrame Resizer - GitHub Pages
js script inside the iFramed page. If the other page is on a domain outside your control and you can not add JavaScript...
Read more >iframe-resizer | Yarn - Package Manager
This library enables the automatic resizing of the height and width of both same and cross domain iFrames to fit their contained content....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Published as v4.0.4, sorry for the silly mistake and thanks for the help
Problem persists in angular 12