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

Cannot read property 'nodeValue' of undefined #22897

Closed
wpconsulate opened this issue Jan 7, 2019 · 3 comments
Closed

Cannot read property 'nodeValue' of undefined #22897

wpconsulate opened this issue Jan 7, 2019 · 3 comments
Labels
Bug Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@wpconsulate
Copy link

wpconsulate commented Jan 7, 2019

Environment

React Native Environment Info:
    System:
      OS: macOS 10.14.2
      CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
      Memory: 202.64 MB / 16.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 10.8.0 - /usr/local/bin/node
      Yarn: 1.9.4 - /usr/local/bin/yarn
      npm: 6.2.0 - /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:
        API Levels: 23, 24, 25, 26, 27, 28
        Build Tools: 23.0.1, 25.0.0, 25.0.2, 26.0.1, 26.0.2, 27.0.3, 28.0.1
        System Images: android-28 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 3.2 AI-181.5540.7.32.5056338
      Xcode: 10.0/10A255 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.3 => 16.6.3 
      react-native: 0.57.8 => 0.57.8 
    npmGlobalPackages:
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7

Description

I'm able to run the App in development mode but when I try to run the app in Release Mode. It throws the error when try to link he project. Thing to Notice here I'm using react-native-config and that links fine but while linking the Assets Project throws the error.

below are the logs from console

react-native link
Scanning folders for symlinks in /Users/deepak/Projects/mono/LQMobile/node_modules (19ms)
rnpm-install info Android module react-native-amplitude-analytics is already linked 
rnpm-install info iOS module react-native-amplitude-analytics is already linked 
rnpm-install info Android module react-native-code-push is already linked 
rnpm-install info iOS module react-native-code-push is already linked 
Running ios postlink script
"CodePush.h" header already imported.
"jsCodeLocation" already pointing to "[CodePush bundleURL]".
Could not determine correct xcode proj path to retrieve related plist file, there are multiple xcodeproj under the solution.
"CodePushDeploymentKey" already specified in the plist file.
Running android postlink script
"getJSBundleFile" is already overridden
"codepush.gradle" is already linked in the build definition
rnpm-install info Android module react-native-config is already linked 
rnpm-install info Linking react-native-config ios dependency 
rnpm-install info iOS module react-native-config has been successfully linked 
rnpm-install info Android module react-native-couchbase-lite is already linked 
rnpm-install info iOS module react-native-couchbase-lite is already linked 
rnpm-install info Android module react-native-fabric is already linked 
rnpm-install info iOS module react-native-fabric is already linked 
rnpm-install info Android module react-native-hockeyapp is already linked 
rnpm-install info Android module react-native-linear-gradient is already linked 
rnpm-install info iOS module react-native-linear-gradient is already linked 
Preparing to link react-native-lock for iOS
Checking CocoaPods...
CocoaPods already installed
rnpm-install info Android module react-native-lock is already linked 
rnpm-install info iOS module react-native-lock is already linked 
Checking Podfile in iOS project LQMobile (/Users/deepak/Projects/mono/LQMobile/ios/Podfile)

Found an existing Podfile, Do you want to override it? [N/y]
y
Adding Podfile to iOS project
Installing Pods
Analyzing dependencies
Downloading dependencies
Using AFNetworking (3.2.1)
Using Lock (1.29.2)
Using Masonry (0.6.4)
Using SimpleKeychain (0.8.1)
Using TouchIDAuth (0.2.0)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 5 dependencies from the Podfile and 5 total pods installed.

[!] Automatically assigning platform `ios` with version `9.0` on target `LQMobile` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
rnpm-install info Android module react-native-push-notification is already linked 
rnpm-install info Android module react-native-push-notifications is already linked 
rnpm-install info Android module react-native-svg is already linked 
rnpm-install info iOS module react-native-svg is already linked 
rnpm-install info Android module react-native-vector-icons is already linked 
rnpm-install info iOS module react-native-vector-icons is already linked 
rnpm-install info Linking assets to ios project 
rnpm-install ERR! Something went wrong while linking. Error: Cannot read property 'nodeValue' of undefined 
Please file an issue here: https://github.com/facebook/react-native/issues 

Cannot read property 'nodeValue' of undefined

below you can find my package.json

{
  "name": "LQMobile",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest",
    "lint": "node tools/lint.js",
    "lint:all": "node tools/lint.js all",
    "preinstall": "node preinstall.js",
    "postinstall": "(cd node_modules/react-native-snackbar-dialog && yarn build) && (if [ $(uname -s) = \"Darwin\" ]; then (cd ios && pod install) fi)",
    "format": "prettier-eslint --write \"src/**/*.js\""
  },
  "dependencies": {
    "DietTemplateInteractor": "file:../vendors/DietTemplateInteractor",
    "babel-plugin-idx": "^2.2.0",
    "create-react-class": "^15.6.2",
    "foreman": "^3.0.1",
    "fuse.js": "^2.6.2",
    "icepick": "^2.3.0",
    "idx": "^2.2.0",
    "immutable": "^3.8.1",
    "lodash": "^4.17.4",
    "moment": "^2.22.2",
    "prop-types": "^15.5.10",
    "react": "16.2.0",
    "react-motion": "^0.4.7",
    "react-native": "0.53.0",
    "react-native-accordion": "^1.0.0",
    "react-native-amplitude-analytics": "^0.1.14",
    "react-native-app-intro": "https://github.com/merryjs/react-native-app-intro",
    "react-native-app-link": "^0.4.0",
    "react-native-button": "2.2.0",
    "react-native-circular-progress-patch": "https://github.com/chetankumar01/react-native-circular-progress.git",
    "react-native-code-push": "5.2.1",
    "react-native-config": "^0.11.5",
    "react-native-couchbase-lite": "https://github.com/couchbaselabs/react-native-couchbase-lite.git",
    "react-native-datepicker": "^1.6.0",
    "react-native-elements": "0.18.5",
    "react-native-fabric": "0.5.1",
    "react-native-fabric-crashlytics": "^0.1.8",
    "react-native-highlight-words": "^1.0.0",
    "react-native-hockeyapp": "^0.5.1",
    "react-native-keyboard-aware-scroll-view": "^0.3.0",
    "react-native-linear-gradient": "^2.0.0",
    "react-native-lock": "https://github.com/chetankumar01/react-native-lock.git",
    "react-native-menu": "0.23.0",
    "react-native-modal-datetime-picker": "^4.13.0",
    "react-native-modalbox": "^1.3.9",
    "react-native-platform-touchable": "^1.1.1",
    "react-native-push-notification": "^3.1.2",
    "react-native-push-notifications": "^3.0.10",
    "react-native-radio-buttons": "1.0.0",
    "react-native-router-flux": "4.0.0-beta.28",
    "react-native-scrollable-tab-view": "0.8.0",
    "react-native-segmented-control-tab": "^3.0.1",
    "react-native-segmented-view": "^2.0.0",
    "react-native-snackbar-dialog": "https://github.com/foggy1/react-native-snackbar-dialog.git",
    "react-native-sortable-list": "0.0.22",
    "react-native-svg": "^6.2.2",
    "react-native-svg-charts": "^5.2.0",
    "react-native-swipeout": "^2.3.3",
    "react-native-swipeview": "^1.0.3",
    "react-native-tableview-simple": "0.17.1",
    "react-native-tips": "^0.0.10",
    "react-native-vector-icons": "^4.0.1",
    "react-redux": "^5.0.4",
    "redux-form": "7.2.3",
    "redux-logger": "^2.8.1",
    "redux-persist": "^4.6.0",
    "sendbird": "^3.0.54",
    "validate.js": "^0.11.1",
    "validator": "^9.4.0",
    "victory-native": "^0.17.1"
  },
  "jest": {
    "preset": "jest-react-native",
    "setupFiles": [
      "jest/setup.js"
    ],
    "moduleDirectories": [
      "src",
      "node_modules"
    ],
    "testRegex": "(test|spec)\\.js?$",
    "testPathIgnorePatterns": [
      "/node_modules/",
      "packager/react-packager/src/Activity/"
    ],
    "testEnvironment": "jsdom"
  },
  "devDependencies": {
    "babel-core": "^7.0.0-bridge.0",
    "babel-eslint": "^7.2.2",
    "babel-jest": "17.0.2",
    "babel-plugin-module-resolver": "^2.7.0",
    "babel-plugin-transform-inline-environment-variables": "^0.0.2",
    "babel-preset-airbnb": "^2.2.3",
    "babel-preset-es2015": "^6.22.0",
    "babel-preset-react": "^6.22.0",
    "babel-preset-react-native": "^1.9.1",
    "chai": "^3.5.0",
    "enzyme": "^2.8.2",
    "eslint": "^3.19.0",
    "eslint-config-airbnb": "^14.1.0",
    "eslint-config-airbnb-flow": "^1.0.2",
    "eslint-config-prettier": "^2.3.0",
    "eslint-config-react-app": "^0.6.2",
    "eslint-friendly-formatter": "^3.0.0",
    "eslint-import-resolver-alias": "^1.0.3",
    "eslint-plugin-flowtype": "^2.30.4",
    "eslint-plugin-import": "^2.7.0",
    "eslint-plugin-jsx-a11y": "^4.0.0",
    "eslint-plugin-prettier": "^2.1.2",
    "eslint-plugin-react": "^6.10.3",
    "eslint-plugin-react-native": "^2.3.2",
    "jest": "^17.0.3",
    "jest-react-native": "^17.1.0",
    "metro-react-native-babel-preset": "^0.48.1",
    "mockdate": "^2.0.1",
    "nock": "^9.0.14",
    "prettier-eslint-cli": "^4.1.1",
    "react-addons-test-utils": "15.4.1",
    "react-dom": "15.4.1",
    "react-test-renderer": "^15.6.1",
    "reactotron-react-native": "^1.9.1",
    "reactotron-redux": "^1.9.1",
    "redux": "^3.7.2",
    "redux-mock-store": "^1.2.3",
    "redux-thunk": "^2.2.0",
    "remote-redux-devtools": "^0.5.5",
    "simple-git": "^1.70.0",
    "sinon": "^1.17.7"
  },
  "rnpm": {
    "assets": [
      "./src/fonts/Raleway",
      "./src/fonts/Source_Sans_Pro"
    ]
  }
}

Reproducible Demo

I'll try to setup demo project for the same

@wpconsulate wpconsulate changed the title Cannot read property 'nodeValue' of undefined ( Only in Release Mode ) Cannot read property 'nodeValue' of undefined Jan 7, 2019
@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 "⏪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.

@stale
Copy link

stale bot commented Aug 2, 2019

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 2, 2019
@stale
Copy link

stale bot commented Aug 9, 2019

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Aug 9, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

3 participants