Code Monkey home page Code Monkey logo

Comments (20)

sunnylqm avatar sunnylqm commented on May 13, 2024

can you elaborate on your action steps? And screenshot the error in Xcode

from app-monorepo.

mnz12138 avatar mnz12138 commented on May 13, 2024

can you elaborate on your action steps? And screenshot the error in Xcode

SyntaxError: Unexpected token .
at Module._compile (internal/modules/cjs/loader.js:720:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:643:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:683:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object. (/Users/xxx/Desktop/app-monorepo/node_modules/metro/src/shared/output/bundle.js:14:16)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:643:32)
Command PhaseScriptExecution failed with a nonzero exit code

from app-monorepo.

loatheb avatar loatheb commented on May 13, 2024

Which node.js version? The unrecognized syntax seems like due to an outdated version of node.js.Try to update node.js version to LTS and try again?

from app-monorepo.

mnz12138 avatar mnz12138 commented on May 13, 2024

Which node.js version? The unrecognized syntax seems like due to an outdated version of node.js.Try to update node.js version to LTS and try again?

v16.18.0

from app-monorepo.

mnz12138 avatar mnz12138 commented on May 13, 2024

截屏2022-11-23 15 05 09

from app-monorepo.

sunnylqm avatar sunnylqm commented on May 13, 2024

it still appears to be a deprecated node version. run npx react-native info to see your environment info

from app-monorepo.

mnz12138 avatar mnz12138 commented on May 13, 2024

截屏2022-11-23 16 11 50

from app-monorepo.

loatheb avatar loatheb commented on May 13, 2024

This may be caused by xcode using the wrong node.js version, especially when using multi-version management tools such as nvm.

You can refer to this stackoverflow answer for example to try https://stackoverflow.com/questions/34035421/xcode-using-wrong-node-js-version

from app-monorepo.

mnz12138 avatar mnz12138 commented on May 13, 2024

What version of node.js do you package with?

from app-monorepo.

sunnylqm avatar sunnylqm commented on May 13, 2024

Currently only node v16 tested

from app-monorepo.

mnz12138 avatar mnz12138 commented on May 13, 2024

Can you send out your packing steps

from app-monorepo.

sunnylqm avatar sunnylqm commented on May 13, 2024
  1. git clone
  2. yarn
  3. yarn ios (yarn m1:ios if you are using m1 mac)

from app-monorepo.

mnz12138 avatar mnz12138 commented on May 13, 2024

This seems to be running into the emulator, which I expect is the output ipa.

from app-monorepo.

sunnylqm avatar sunnylqm commented on May 13, 2024

we use https://docs.expo.dev/build/introduction/ to build testing/production app

from app-monorepo.

mnz12138 avatar mnz12138 commented on May 13, 2024

we use https://docs.expo.dev/build/introduction/ to build testing/production app

A successful solution! Another question, configuring environment variables in.env file, can't get the value why?

from app-monorepo.

mnz12138 avatar mnz12138 commented on May 13, 2024

we use https://docs.expo.dev/build/introduction/ to build testing/production app

A successful solution! Another question, configuring environment variables in.env file, can't get the value why?

The web side can be obtained, why can't the app be obtained?

from app-monorepo.

loatheb avatar loatheb commented on May 13, 2024

Hi @mnz12138 . APP need config env at expo dashboard.

from app-monorepo.

mnz12138 avatar mnz12138 commented on May 13, 2024

Hi @mnz12138 . APP need config env at expo dashboard.

Hello, is it the Secrets setting in expo dashboard?

from app-monorepo.

loatheb avatar loatheb commented on May 13, 2024

At present, there are no new additional environment variables in expo. It just means that for APP-related packaging, if you want to inject environment variables correctly, you need to set them again at expo side. You can refer to some configurations of our CI.

from app-monorepo.

mnz12138 avatar mnz12138 commented on May 13, 2024

At present, there are no new additional environment variables in expo. It just means that for APP-related packaging, if you want to inject environment variables correctly, you need to set them again at expo side. You can refer to some configurations of our CI.

I set the values of the environment variables in the .env file, but did not enter the values when the simulator was running console.log.

from app-monorepo.

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.