Giter Site home page Giter Site logo

Incompatibility with rn-nodeify about pbkdf2 HOT 5 OPEN

speedytec avatar speedytec commented on August 16, 2024 3
Incompatibility with rn-nodeify

from pbkdf2.

Comments (5)

calvinmetcalf avatar calvinmetcalf commented on August 16, 2024 2

looks like rn-nodeify fixed it on their end

from pbkdf2.

avinokur4 avatar avinokur4 commented on August 16, 2024 2

Got the same problem here
STR:

  1. rn-nodeify --install --hack --yarn
  2. react-native bundle --entry-file index.tsx --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios
error SyntaxError: /Users/test/node_modules/parse-asn1/node_modules/pbkdf2/lib/default-encoding.js: Unexpected token (5:36)

  3 | if (global.process && global.process.browser) {
  4 |   defaultEncoding = 'utf-8'
> 5 | } else if (global.process && global."v15.6.0") {
    |                                     ^
  6 |   var pVersionMajor = parseInt("v15.6.0".split('.')[0].slice(1), 10)
  7 |
  8 |   defaultEncoding = pVersionMajor >= 6 ? 'utf-8' : 'binary'. Run CLI with --verbose flag for more details.
SyntaxError: /Users/test/node_modules/parse-asn1/node_modules/pbkdf2/lib/default-encoding.js: Unexpected token (5:36)

  3 | if (global.process && global.process.browser) {
  4 |   defaultEncoding = 'utf-8'
> 5 | } else if (global.process && global."v15.6.0") {
    |                                     ^
  6 |   var pVersionMajor = parseInt("v15.6.0".split('.')[0].slice(1), 10)
  7 |
  8 |   defaultEncoding = pVersionMajor >= 6 ? 'utf-8' : 'binary'

from pbkdf2.

WebTarantul avatar WebTarantul commented on August 16, 2024 2

Same issue after node_modules/.bin/rn-nodeify --install --hack

from pbkdf2.

calvinmetcalf avatar calvinmetcalf commented on August 16, 2024

have you upgraded rn-nodeify ?

from pbkdf2.

mkhalil49 avatar mkhalil49 commented on August 16, 2024

I fixed this by following this comment solution

tradle/rn-nodeify#102 (comment)

from pbkdf2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.