question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't import iframe-resizer with webpack

See original GitHub issue

When 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:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
davidjbradshawcommented, Mar 4, 2019

Published as v4.0.4, sorry for the silly mistake and thanks for the help

0reactions
dev-kaancommented, Oct 11, 2022

Problem persists in angular 12

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found