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: TypeError: Cannot read property 'filename' of undefined

See original GitHub issue

Environment

`React Native Environment Info: System: OS: macOS High Sierra 10.13.6 CPU: x64 Intel® Core™ i5-4258U CPU @ 2.40GHz Memory: 28.48 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.10.0 - /usr/local/bin/node Yarn: 1.9.4 - /usr/local/bin/yarn npm: 6.4.1 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0 Android SDK: Build Tools: 19.1.0, 20.0.0, 21.1.2, 22.0.1, 23.0.0, 23.0.1, 23.0.2, 23.0.3, 25.0.2, 25.0.3, 26.0.2, 26.0.3, 27.0.1, 27.0.3 API Levels: 10, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 8, 9 IDEs: Android Studio: 3.1 AI-173.4907809 Xcode: 10.0/10A255 - /usr/bin/xcodebuild npmPackages: @types/react: ^16.4.14 => 16.4.14 @types/react-native: ^0.56.23 => 0.56.23 react: 16.5.0 => 16.5.0 react-native: 0.57.0 => 0.57.0 npmGlobalPackages: create-react-native-app: 1.0.0 react-native-cli: 2.0.1

`

Description

react-native run-ios : error: bundling failed: TypeError: Cannot read property ‘filename’ of undefined image

image

Reproducible Demo

Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
burivuhstercommented, Nov 3, 2018

I had this issue after updating Expo from v30 to v31. Removing the strings "env": { "development": { "plugins": ["transform-react-jsx-source"] } } from my .babelrc helped.

2reactions
Dsignmindcommented, Oct 8, 2018

I’m also experiencing this. react-native: 0.57.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native v0.56: Cannot read property 'filename' of ...
Loading dependency graph, done. error: bundling failed: TypeError: Cannot read property 'filename' of undefined at PluginPass.
Read more >
cannot read properties of undefined (reading 'filename') multer
But clicked submit directly without uploading files then it gives this error: TypeError: Cannot read properties of undefined (reading 'filename').
Read more >
Cannot read property 'filename' of undefined 'getting this error ...
Coding example for the question TypeError: Cannot read property 'filename' of undefined 'getting this error while creating a User'-Reactjs.
Read more >
SFDX ERROR: Cannot read property 'fileName' of undefined
I tried today after running sfdx update (I'm now running salesforcedx 45.3.4 (core)), and it's fixed. Try updating the CLI and run the...
Read more >
react-native failed to load bundle could not connect to ...
react-native run-ios : error: bundling failed: TypeError: Cannot read property 'filename' of undefined Reproducible Demo Let us know how to reproduce 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