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 : TransformError with babel-plugin-add-module-exports

See original GitHub issue

Hello,

Fuse does’nt work with React Native since 3.X

Importing Fuse in a react-native projet causes an issue with babel-plugin-add-module-exports :

TransformError: […]/node_modules/fuse.js/dist/fuse.js: Unknown plugin "babel-plugin-add-module-exports" specified in "[…]/node_modules/fuse.js/.babelrc" at 0, attempted to resolve relative to "[…]/node_modules/fuse.js"

Is there an extra step to do on a react-native project ? Thank’s

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

5reactions
brianephraimcommented, Feb 22, 2018

try import Fuse from 'fuse.js/src';

2reactions
meriadeccommented, Aug 22, 2017

Hey there, following the discussion, @krisk would you mind publish a release to npm? Thanks in advance!

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-native app crashes when installing fuse.js with ...
I encountered the same issue and got it resolved by installing the missing npm modules: npm install --save-dev babel-preset-es2015 ...
Read more >
State - React Native
There are two types of data that control a component: props and state. props are set by the parent and they are fixed...
Read more >
[Solved]-React-native app crashes when installing fuse.js with ...
Coding example for the question React-native app crashes when installing fuse.js with transform error.
Read more >
TransformError when running React Native Gettin...anycodings
Answers 4 : of TransformError when running React Native Getting Started project (iOS). It is caused by bug in anycodings_react-native babel-preset-react-native.
Read more >
Error Boundaries - React
Error boundaries are React components that catch JavaScript errors anywhere ... We also encourage you to use JS error reporting services (or build...
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