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.

Importing react-iframe produces an error

Examples: Testing on https://runkit.com/npm/react-iframe

Produces two syntax errors: SyntaxError: Unexpected token import A stack trace for this error could not be retrieved because stack was already called.


Importing locally and attempting to run a file with the import using either

var Iframe =  require('react-iframe');
import Iframe from 'react-iframe';

produces the following error:

index.js:1 Uncaught SyntaxError: Unexpected token import

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
robbestadcommented, Jun 3, 2017

Sorry about that. Should be fixed in v1.0.7

2017-06-02 17:55 GMT+02:00 Joe Andrews notifications@github.com:

+1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/svenanders/react-iframe/issues/10#issuecomment-305830288, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfQp67yC_B7k_USjPH7dFhKXtVTDMeWks5sADBqgaJpZM4NIHMy .

– Mvh, Sven Anders Robbestad http://www.robbestad.com http://twitter.com/#!/svenardocom

0reactions
robbestadcommented, Nov 7, 2017

Closing for now as I think it’s okay. Let me know if you still have problems!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix ImportError: Cannot Import Name in Python - Rollbar
The Python ImportError: cannot import name error occurs when an imported class is not accessible or is in a circular dependency.
Read more >
Python Import Error (ModuleNotFoundError) - Finxter
Python's ImportError ( ModuleNotFoundError ) indicates that you tried to import a module that Python doesn't find. It can usually be eliminated by...
Read more >
Python Exception Handling: ImportError and ... - Airbrake Blog
The ImportError is raised when an import statement has trouble successfully importing the specified module. Typically, such a problem is due to ...
Read more >
import error: 'No module named' *does* exist - python
I set the PYTHONPATH to '.' and that solved it for me. export PYTHONPATH='.' For a one-liner you could as easily do: PYTHONPATH='....
Read more >
Easiest way to Fix importerror in python ( All in One )
There are two root causes for importerror in python. The First is absence of respective python module and second is incorrect path configuration....
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