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.

React Native Import Error

See original GitHub issue

screen shot 2016-05-09 at 9 27 29 pm

Thats what i get after using this: import Pusher from 'pusher-js/react-native'; in my code

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
jackfranklincommented, May 12, 2016

No worries! Feel free to comment again if it crops up.

0reactions
hphcommented, Jun 6, 2017

@ajpsp5 It should be import Pusher from 'pusher-js/react-native'.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is importing not working in react native? - Stack Overflow
If file to import is not .js, then make sure appropriate react library is imported in first import E.g.( import {..., Image }...
Read more >
Troubleshooting common React Native bugs - LogRocket Blog
Import error. Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite ...
Read more >
Attempted import error 'X' is not exported from | bobbyhadz
The React.js "Attempted import error 'X' is not exported from" occurs when we try to import a named import that is not present...
Read more >
Troubleshooting - React Native
If you encounter an error such as npm WARN locking Error: EACCES while using the React Native CLI, try running the following:.
Read more >
v2.2.1 - Attempted import error: 'createElement' is not exported ...
Problem: When running expo build:web, I receive the error below Dependencies: picker v2.2.1 react-native-web 0.14.10 expo 43 Solution: ...
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