error: bundling failed
See original GitHub issueHi,
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:
- Created 5 years ago
- Comments:11 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Thx for support, Flow error was easy to fix,
.flowconfig
:module.name_mapper='.*\(.graphql\)' -> 'empty/object'