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.

error: bundling failed

See original GitHub issue

Hi,

I’m trying to use latest version of plugin (2.5.0) in react native project (babel-core 6.26.3) but I do get this error

error: bundling failed: TypeError: Cannot read property 'indexOf' of undefined
    at /xxx/node_modules/babel-plugin-import-graphql/build/index.js:46:22

here’s my .babelrc

{
  "plugins": ["import-graphql"],
  "presets": ["react-native", "react-native-stage-0/decorator-support", "flow"]
}

Any ideas?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
ovariscommented, Jun 8, 2018

Sleeve worked! Big thanks. Now only thing left to figure out is to how to get rid of Flow error: Cannot resolve module ./foo.graphql

1reaction
ovariscommented, Jun 8, 2018

Thx for support, Flow error was easy to fix, .flowconfig: module.name_mapper='.*\(.graphql\)' -> 'empty/object'

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native, bundling failed - Stack Overflow
It Usually happens if you try to install a module while your packager is open. Try to delete node_modules folder and close the...
Read more >
bundling failed: Error: Unable to resolve module `_ ... - GitHub
i tried to do all these step and nothing worked Clear watchman watches: watchman watch-del-all. Delete the node_modules folder: rm -rf node_modules &&...
Read more >
Error: Unable to resolve module `util` – Split Help Center
Running bundle using React Native and Javascript SDK causes an error. Bundling failed: Error: Unable to resolve module `util`.
Read more >
Bundling failed: Module not found - Forge
I'm building a Forge application uploading files to remote server with formdata-node , and I get below error while bundling.
Read more >
[Solved]-react-native, bundling failed - appsloveworld.com
It Usually happens if you try to install a module while your packager is open. Try to delete node_modules folder and close the...
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