Skip to content

Unbundling is not working on release #17811

@fatimaranile

Description

@fatimaranile

Is this a bug report?

No

Have you read the Contributing Guidelines?

Yes

Environment

Environment:
OS: macOS Sierra 10.13.1
Node: 6.11.0
Yarn: 1.3.2
npm: 5.6.0
Watchman: 4.7.0
Xcode: Xcode 9.0 Build version 9A235
Android Studio: 3.0.1 AI-171.4443003

Packages: (wanted => installed)
react-native: 0.51.0 => 0.51.0
react: 16.0.0 => 16.0.0

Target Platform: iOS (9)

Steps to Reproduce

I tried implementing the unbundling and inline requires to my project. It works on simulation but when I release the project on iOs or create an apk for android errors occurred.

Errors Occurred

TransformError: /Users/<user_name>/<folderPath>/<projectfoldername>/<project_name>/clients/mobile/node_modules/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js: /Users/<user_name>/<folderPath>/projectfoldername/<project_name>/clients/mobile/node_modules/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js: NodePath has been removed so is read-only. (This is an error on an internal node. Probably an internal error)

error: File /Users/<user_name>/Library/Developer/Xcode/DerivedData/<project_name>-fggebbxvaywbawbbcoypijwnkwjm/Build/Intermediates.noindex/ArchiveIntermediates/therion_mobile/BuildProductsPath/Release-iphoneos/<project_name>.app/main.jsbundle does not exist.

Then I noticed that the component AccessibilityInfo is in the waiting module but the instruction from the link I pasted below said that only the loaded modules will be put on the moduleNames.

I tried to put the modules that are waiting to the moduleNames.js it resulted to a success in release but the speed of the mobile app did not improve. This occurred on both iOs and Android platforms.

(Write your steps here:)

  1. I followed all the steps from this link https://facebook.github.io/react-native/docs/performance.html#unbundling-inline-requires
  2. yarn start
  3. In xcode Clean --> Build --> Archive Project

Expected Behavior

The startup speed should improve.

Actual Behavior

The startup speed is still the same with disabled unbundling.

Can anyone tell me what I'm missing or if there is something I need to know to successfully implement unbundling and inline requires on my react native project? Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions