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 assign to a require(...) alias, Tokenizer (React Native 0.56.0) #20195

Closed
skantus opened this issue Jul 13, 2018 · 1 comment
Closed
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@skantus
Copy link

skantus commented Jul 13, 2018

Environment

React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.5
      CPU: x64 Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz
      Memory: 752.84 MB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 8.11.3 - /usr/local/bin/node
      npm: 6.1.0 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
      Android SDK:
        Build Tools: 23.0.1, 23.0.3, 25.0.0, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 27.0.3
        API Levels: 23, 25, 26, 27
    IDEs:
      Android Studio: 3.1 AI-173.4720617
      Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
    npmPackages:
      react: ^16.4.1 => 16.4.1
      react-native: ^0.56.0 => 0.56.0
    npmGlobalPackages:
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7

Description

I update my project to React Native 0.56.0 along with Babel 7 but I'm having troubles with the tests in jest, initially reviewed the possible cases of the problem in this related issue #19859 but looks like is another one.

File: babel-preset-fbjs/pugins/inline-requires.js

captura de pantalla 2018-07-13 a las 16 05 00

These are the dependencies that I using:

 "dependencies": {
    "react": "^16.4.1",
    "react-dom": "^16.4.1",
    "react-native": "^0.56.0",
  }
 "devDependencies": {
    "@babel/core": "^7.0.0-beta.53",
    "babel-core": "^7.0.0-bridge.0",
    "babel-preset-react-native": "^5.0.2",
    "jest": "23.2.0",
    "react-test-renderer": "16.3.1"
}
"jest": {
    "preset": "react-native",
    "transform": {
      "^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
    }
  }
@skantus skantus closed this as completed Jul 16, 2018
@ViktorKjerrman
Copy link

@skantus Do you mind sharing the reason closing this issue?

If you solved this issue, would you mind share the solution here for others having the same issue.

Thank you,
Viktor

@facebook facebook locked as resolved and limited conversation to collaborators Jul 18, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants