i am new to react native and i recently started to try and build ios locally.I used to build well with Monterey and xcode 13 but my mac updated to Ventura and xcode 14 after that i have the same problem over and over again
Error: Cannot find module './sax'
Require stack:
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/plist/lib/xmldom/dom-parser.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/plist/lib/parse.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/plist/index.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/simple-plist/dist/parse.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/simple-plist/dist/index.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/xcode/lib/pbxProject.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/xcode/index.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/#expo/build-tools/node_modules/#expo/config-plugins/build/ios/utils/Xcodeproj.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/#expo/build-tools/node_modules/#expo/config-plugins/build/ios/ProvisioningProfile.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/#expo/build-tools/node_modules/#expo/config-plugins/build/ios/index.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/#expo/build-tools/node_modules/#expo/config-plugins/build/index.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/#expo/build-tools/dist/android/expoUpdates.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/#expo/build-tools/dist/utils/expoUpdates.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/#expo/build-tools/dist/builders/android.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/#expo/build-tools/dist/builders/index.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/#expo/build-tools/dist/index.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/eas-cli-local-build-plugin/dist/build.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/eas-cli-local-build-plugin/dist/main.js
- /Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/eas-cli-local-build-plugin/bin/run
at Module._resolveFilename (node:internal/modules/cjs/loader:1039:15)
at Module._load (node:internal/modules/cjs/loader:885:27)
at Module.require (node:internal/modules/cjs/loader:1105:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/Users/work-mac/.npm/_npx/86c1f166462562ca/node_modules/plist/lib/xmldom/dom-parser.js:246:11)
at Module._compile (node:internal/modules/cjs/loader:1218:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
at Module.load (node:internal/modules/cjs/loader:1081:32)
at Module._load (node:internal/modules/cjs/loader:922:12)
at Module.require (node:internal/modules/cjs/loader:1105:19)
build with expo servers no problem.
expo doctor no errors
yarn install / yarn start all working well with sim
deleted node modules and package-lock and yarn install again
Related
I'm trying to upgrade to Vaadin 23 from Vaadin 18. After performing the steps listed on the upgrade instructions I'm having a ton of issues getting the front-end build. The latest blocker is that after starting the app, npm runs, but I see the below error. I checked the node_modules folder and the build-status-plugin folder is a symlink to target\plugins\build-status-plugin, which is empty.
The rest of the node_modules folder looks fine as far as I can tell.
java.lang.IllegalStateException: Startup of Webpack failed. Output was:
[webpack-cli] Failed to load 'C:\Users\daniel.watson\git\data-loader-web\webpack.config.js' config
[webpack-cli] Error: Cannot find module '#vaadin/build-status-plugin'
Require stack:
- C:\Users\daniel.watson\git\data-loader-web\webpack.generated.js
- C:\Users\daniel.watson\git\data-loader-web\webpack.config.js
- C:\Users\daniel.watson\git\data-loader-web\node_modules\webpack-cli\lib\webpack-cli.js
- C:\Users\daniel.watson\git\data-loader-web\node_modules\webpack-cli\lib\bootstrap.js
- C:\Users\daniel.watson\git\data-loader-web\node_modules\webpack-cli\bin\cli.js
- C:\Users\daniel.watson\git\data-loader-web\node_modules\webpack-dev-server\bin\webpack-dev-server.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Users\daniel.watson\git\data-loader-web\webpack.generated.js:16:27)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\daniel.watson\\git\\data-loader-web\\webpack.generated.js',
'C:\\Users\\daniel.watson\\git\\data-loader-web\\webpack.config.js',
'C:\\Users\\daniel.watson\\git\\data-loader-web\\node_modules\\webpack-cli\\lib\\webpack-cli.js',
'C:\\Users\\daniel.watson\\git\\data-loader-web\\node_modules\\webpack-cli\\lib\\bootstrap.js',
'C:\\Users\\daniel.watson\\git\\data-loader-web\\node_modules\\webpack-cli\\bin\\cli.js',
'C:\\Users\\daniel.watson\\git\\data-loader-web\\node_modules\\webpack-dev-server\\bin\\webpack-dev-server.js'
]
}
com.vaadin.base.devserver.AbstractDevServerRunner.doStartDevModeServer(AbstractDevServerRunner.java:217)
com.vaadin.base.devserver.AbstractDevServerRunner.runOnFutureComplete(AbstractDevServerRunner.java:169)
com.vaadin.base.devserver.AbstractDevServerRunner.lambda$new$0(AbstractDevServerRunner.java:160)
java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Edit: Just created a brand new project, (npx react-native-init), still the same exact issue. No clue what's happening, never had this issue before.
App is building / running file locally. It's only when I archive this issue pops up.
Tried:
Deleting pod file / workspace
Checking 'For install builds only'
Disable / Enable the 'login' in 'Keychain Access'
Cleaning and restarting computer
Archiving in debug and release
Node: 14.16.1 / RN: 0.64.0 / Typescript
What else should I do? Really stuck here. It doesn't make sense it builds fine locally but not in Archive. Thank you.
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/andrewyoung/tacapp/node_modules/react-native/node_modules/#react-native-community/cli/build/commands/doctor/doctor.js:28:21)
Command PhaseScriptExecution failed with a nonzero exit code
Got it - Per this article I used: nvm unalias default and my app is now running.
package.json has
"#tensorflow/tfjs-node": "^1.4.0",
Here's the error:
Error: Cannot find module 'C:\Users\me\projects\myproject-desktop\project\node_modules\#tensorflow\tfjs-node\lib\napi-v4\tfjs_binding.node'
Require stack:
- C:\Users\me\projects\myproject-desktop\project\node_modules\#tensorflow\tfjs-node\dist\index.js
- C:\Users\me\projects\myproject-desktop\project\dist_electron\index.js
- C:\Users\me\projects\myproject-desktop\project\node_modules\electron\dist\resources\default_app.asar\main.js
-
at Module._resolveFilename (internal/modules/cjs/loader.js:717:15)
at Function../lib/common/reset-search-paths.ts.Module._resolveFilename (electron/js2c/browser_init.js:7609:16)
at Module._load (internal/modules/cjs/loader.js:622:27)
at Module._load (electron/js2c/asar.js:717:26)
at Function.Module._load (electron/js2c/asar.js:717:26)
at Module.require (internal/modules/cjs/loader.js:775:19)
at require (internal/modules/cjs/helpers.js:68:18)
at Object.<anonymous> (C:\Users\me\projects\myproject-desktop\project\node_modules\#tensorflow\tfjs-node\dist\index.js:44:16)
at Module._compile (internal/modules/cjs/loader.js:880:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:892:10)
If I go into C:\Users\me\projects\myproject-desktop\project\node_modules\#tensorflow\tfjs-node\lib\ there is a napi-v5\tfjs_binding.node but no napi-v4\tfjs_binding.node.
Do I just need to downgrade tensorflowjs? Anyone know what napi-v4 vs v5 is?
Yes you will need to downgrade tensorflowjs (while waiting for the next release).
The solution would be to use node 10.16.3 and run the command:
npm rebuild #tensorflow/tfjs-node --build-from-source
So, I'm setting up new React Native project, and I'm trying to setup XCode simulator. I've opened my React Native project in XCode and in the terminal when I run "yarn run ios" from a project folder I'm getting the error "Error: Cannot find module '#babel/runtime/helpers/interopRequireDefault'
at Function.Module._resolveFilename".
My-MacBook-Pro-2:projectZero alexs$ yarn run ios
yarn run v1.13.0
$ react-native run-ios
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module '#babel/runtime/helpers/interopRequireDefault'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/Users/alexs/Desktop/React/Native/projectZero/node_modules/react-native/local-cli/cliEntry.js:11:41)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Module._compile (/Users/alexs/Desktop/React/Native/projectZero/node_modules/pirates/lib/index.js:83:24)
at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Object.newLoader [as .js] (/Users/alexs/Desktop/React/Native/projectZero/node_modules/pirates/lib/index.js:88:7)
at Module.load (internal/modules/cjs/loader.js:599:32)
error Command failed with exit code 1.
Does anybody have an idea how to solve this?
I solved it by running:
yarn add #babel/runtime
I have a Phonegap app and need to build it in a Mac. Everything works in a machine and I'm trying to configure a new one, but on this, when I run phonegap platform add ios I receive the following error:
$ phonegap platform add ios
/usr/local/lib/node_modules/phonegap/lib/phonegap/util/connect-proxy.js:21
fs.readFile(settings, (err, data) => {
^^
SyntaxError: Unexpected token =>
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/usr/local/lib/node_modules/phonegap/lib/phonegap/serve.js:9:23)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
Both Macs are running with node v0.12.7 and npm 2.11.3.
Apparently phonegap is using ECMAScript 6 Features like Arrow Functions.
I think this is resulting into your error, because you are still using Node v0.12.7, which does not support these features. Installing the latest LTS version from Official Node.js should fixed that.
For further information please have a look at the phonegap requirements.
Please update your node and npm version to solved your problem.