Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: bundling failed: TypeError: Cannot read property 'filename' of undefined #21236

Closed
3 tasks done
hqwlkj opened this issue Sep 21, 2018 · 9 comments
Closed
3 tasks done
Labels
Bug Resolution: Locked This issue was locked by the bot. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.

Comments

@hqwlkj
Copy link

hqwlkj commented Sep 21, 2018

Environment

`React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) 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

@react-native-bot
Copy link
Collaborator

It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists.

The ":rewind:Old Version" label will be removed automatically once you edit your original post with the results of running react-native info on a project using the latest release.

@hqwlkj
Copy link
Author

hqwlkj commented Sep 21, 2018

I am already using the latest version.
react-native: 0.57.0 => 0.57.0

@react-native-bot react-native-bot added the Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used. label Sep 21, 2018
@bakhaa
Copy link

bakhaa commented Sep 28, 2018

+1

@Dsignmind
Copy link

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

@alikemalcelenk
Copy link

+1
react-native: 0.57.3

@koredefashokun
Copy link

+1. Any temporary workarounds yet?

@jayb967
Copy link

jayb967 commented Nov 1, 2018

+1 I am also having this issue..

@burivuhster
Copy link

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.

@grabbou
Copy link
Contributor

grabbou commented Mar 19, 2019

Hello there 👋 this issue doesn't have a repro (which means, a react-native init-ed project with the minimal changes that leads to creating the same issue you are reporting). Unfortunately, I have no way of helping you in a meaningful way – there is no easy way for me to recreate the situation and check that the issue reported is still there when changing the code.

Because of this, we are going to close this issue - but if a repro is shared, we are happy to reopen it 🤗

@grabbou grabbou closed this as completed Mar 19, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Mar 19, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Resolution: Locked This issue was locked by the bot. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.
Projects
None yet
Development

No branches or pull requests

10 participants