renative
renative copied to clipboard
[macos, tizen, webos] run fails on new project
Describe the bug Macos run fails on new project (three different ways)
To Reproduce First way:
- Install rnv via npm
- Create new project
- Do
npx rnv run -p macos
-> error
Expected behavior app is built and launched on desktop
Screenshots or copy&paste
┌─────────────────────────────────────────────────────────────────┐
│ ✔ SUMMARY | 4/11/2024, 10:15:01 AM | [email protected] │
│ $ rnv new │
├─────────────────────────────────────────────────────────────────┤
│ Project: [email protected] │
│ Workspace: rnv │
│ Engine: engine-core │
│ Template: @rnv/template-starter │
│ Build Scheme (-s): debug │
│ Env Info: darwin | arm64 | node v18.19.0 │
│ Executed Time: 0h:0m:47s:718ms │
│
Generated Project Summary:
-------------------------
Project Name (--projectName): zxc
Package name: zxc
Project Version (--appVersion): 0.1.0
Workspace (--workspace): rnv
App Title (--title): zxc
App ID (--id): com.mycompany.zxc
Project Template (--template): @rnv/[email protected]
Git Enabled (--gitEnabled): true
Enabled Platforms: web, ios, android, androidtv, firetv, tvos, macos, linux, tizen, webos, chromecast, kaios, androidwear, tizenwatch
-------------------------
✔ Your project is ready! Run it with:
cd zxc
npx rnv run
│ You are trying to run global rnv command in your current project.
│ This might lead to unexpected behaviour.
│ Run your rnv command with npx prefix:
│ npx rnv new
└─────────────────────────────────────────────────────────────────┘
➜ rnv_new cd zxc
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /Users/gabriele/Desktop/rnv_new/zxc/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.
Unknown ruby interpreter version (do not know how to handle): >=2.6.10.
➜ zxc git:(master) ✗ npx rnv run -p macos
┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │
│ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │
│ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │
│ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │
│ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │
│ $ npx rnv run -p macos │
└─────────────────────────────────────────────────────────────────┘
info: Some engines not installed in your project:
> @rnv/[email protected]
> @rnv/[email protected]
> @rnv/[email protected]
> @rnv/[email protected]
> @rnv/[email protected]
ADDING TO PACKAGE.JSON...DONE
✔ Executing: yarn
error: ⨯ Error: Cannot find module '/Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/engine-rn-electron'
Require stack:
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/lib/engines/index.js
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/lib/tasks/taskHelpers.js
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/lib/tasks/taskFinder.js
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/lib/index.js
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/cli/lib/index.js
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/cli/lib/bin.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Function.Module._load (node:internal/modules/cjs/loader:975:27)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/src/engines/index.ts:517:21
at step (/Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/node_modules/tslib/tslib.js:193:27)
at Object.next (/Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/node_modules/tslib/tslib.js:174:57)
at /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/node_modules/tslib/tslib.js:167:75
at new Promise (<anonymous>)
at Object.__awaiter (/Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/node_modules/tslib/tslib.js:163:16)
┌─────────────────────────────────────────────────────────────────┐
│ ⨯ SUMMARY | 4/11/2024, 10:16:29 AM | rnv@ │
│ $ npx rnv run -p macos │
├─────────────────────────────────────────────────────────────────┤
│ Project: [email protected] │
│ Workspace: rnv │
│ Platform (-p): macos │
│ Build Scheme (-s): debug │
│ Env Info: darwin | arm64 | node v18.19.0 │
│ Executed Time: 0h:0m:42s:993ms │
│ error: ⨯ Error: Cannot find module '/Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/engine-rn-electron'
Require stack:
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/lib/engines/index.js
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/lib/tasks/taskHelpers.js
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/lib/tasks/taskFinder.js
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/lib/index.js
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/cli/lib/index.js
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/cli/lib/bin.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Function.Module._load (node:internal/modules/cjs/loader:975:27)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/src/engines/index.ts:517:21
at step (/Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/node_modules/tslib/tslib.js:193:27)
at Object.next (/Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/node_modules/tslib/tslib.js:174:57)
at /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/node_modules/tslib/tslib.js:167:75
at new Promise (<anonymous>)
at Object.__awaiter (/Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/node_modules/tslib/tslib.js:163:16)
└─────────────────────────────────────────────────────────────────┘
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: Cannot find module '/Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/engine-rn-electron'
Require stack:
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/lib/engines/index.js
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/lib/tasks/taskHelpers.js
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/lib/tasks/taskFinder.js
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/lib/index.js
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/cli/lib/index.js
- /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/cli/lib/bin.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Function.Module._load (node:internal/modules/cjs/loader:975:27)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/src/engines/index.ts:517:21
at step (/Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/node_modules/tslib/tslib.js:193:27)
at Object.next (/Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/node_modules/tslib/tslib.js:174:57)
at /Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/node_modules/tslib/tslib.js:167:75
at new Promise (<anonymous>)
at Object.__awaiter (/Users/gabriele/Desktop/rnv_new/zxc/node_modules/@rnv/core/node_modules/tslib/tslib.js:163:16)
➜ zxc git:(master) ✗
Second way:
- Create new project
- Do
npx rnv run
-> error - Repeat
npx rnv run
and choose macos
➜ macos git:(master) ✗ npx rnv run
┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │
│ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │
│ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │
│ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │
│ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │
│ $ npx rnv run │
└─────────────────────────────────────────────────────────────────┘
? Pick a platform for task: "rnv run" macos
info: Current platform: macos
info: Current engine: engine-rn (./node_modules/@rnv/engine-rn)
task: ○ run ↺1
info: Build hooks not complied. BUILDING...
task: ○ configure ↺1
task: ○ platform configure ↺1
task: ○ project configure ↺1
info: Creating folder ./platformBuilds ...DONE
task: ○ workspace configure ↺1
task: ✔ workspace configure
warn: ○ project configure: Updates to package.json are required:
- raf (N/A) => (3.4.1) Missing dependency for platform tizen | engine.npm (@rnv/engine-rn-web)
? What to do? Update package and install (recommended)
✔ Executing: yarn
task: ○ app configure ↺1
info: Found only one app config available. Will use app
info: Current app config: app
task: ✔ app configure
task: ✔ project configure
info: Current Build Scheme: debug
warn: ○ platform configure: Updates to package.json are required:
- react (N/A) => (18.2.0) Missing dependency | plugin (renative.json)
- react-art (N/A) => (18.2.0) Missing dependency | plugin (renative.json)
- react-dom (N/A) => (18.2.0) Missing dependency | plugin (renative.json)
- react-native (N/A) => (0.73.4) Missing dependency | plugin (renative.json)
- @rnv/renative (N/A) => (1.0.0-rc.16) Missing dependency | plugin (renative.json)
- react-native-gesture-handler (N/A) => (2.14.1) Missing dependency | plugin (renative.json)
- react-native-web (N/A) => (0.19.9) Missing dependency | plugin (renative.json)
? What to do? Update package and install (recommended)
✔ Executing: yarn
info: ✔ /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/[email protected]. FIXING...DONE
info: ✔ /@react-native-community/cli/build/bin.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json. FIXING...DONE
task: ✔ platform configure
info: Found custom assetSources at ./node_modules/@flexn/assets-renative-outline/assets/macos. Will be used to generate assets.
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/engine-rn/templates/platforms/macos/RNVApp/AppDelegate.mm
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/engine-rn/templates/platforms/macos/RNVApp/AppDelegate.h
info: Podfile.lock does not exist. Will execute pod actions...
✔ Executing: bundle install
✖ FAILED: bundle exec pod install
error: ⨯ ○ configure: COMMAND:
bundle exec pod install
FAILED with ERROR:
[!] Invalid `Podfile` file: syntax error, unexpected '}', expecting =>
{{PLUGIN_PODFILE_SOURCES}}
^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:4: syntax error, unexpected '}', expecting =>
{{PLUGIN_WARNINGS}}
^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:46: syntax error, unexpected '}', expecting =>
{{PLUGIN_PATHS}}
^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:57: syntax error, unexpected '}', expecting =>
... = [{{PLUGIN_STATIC_FRAMEWORKS}}]
... ^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:61: syntax error, unexpected '}', expecting =>
...IN_STATIC_POD_EXTRA_CONDITIONS}}
... ^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:66: syntax error, unexpected '}', expecting =>
...{{PLUGIN_STATIC_POD_DEFINITION}}
... ^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:97: syntax error, unexpected '}', expecting =>
{{PLUGIN_PODFILE_INJECT}}
^
.
# from /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:1
# -------------------------------------------
Error: Command failed with exit code 1: bundle exec pod install
[!] Invalid `Podfile` file: syntax error, unexpected '}', expecting =>
{{PLUGIN_PODFILE_SOURCES}}
^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:4: syntax error, unexpected '}', expecting =>
{{PLUGIN_WARNINGS}}
^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:46: syntax error, unexpected '}', expecting =>
{{PLUGIN_PATHS}}
^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:57: syntax error, unexpected '}', expecting =>
... = [{{PLUGIN_STATIC_FRAMEWORKS}}]
... ^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:61: syntax error, unexpected '}', expecting =>
...IN_STATIC_POD_EXTRA_CONDITIONS}}
... ^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:66: syntax error, unexpected '}', expecting =>
...{{PLUGIN_STATIC_POD_DEFINITION}}
... ^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:97: syntax error, unexpected '}', expecting =>
{{PLUGIN_PODFILE_INJECT}}
^
.
# from /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:1
# -------------------------------------------
> {{PLUGIN_PODFILE_SOURCES}}
# platform :ios, '15.0'
# -------------------------------------------
at makeError (/Users/gabriele/Desktop/rnv_new/macos/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/gabriele/Desktop/rnv_new/macos/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
┌─────────────────────────────────────────────────────────────────┐
│ ⨯ SUMMARY | 4/11/2024, 10:36:12 AM | rnv@ │
│ $ npx rnv run │
├─────────────────────────────────────────────────────────────────┤
│ Project: [email protected] │
│ Workspace: rnv │
│ Platform (-p): macos │
│ Engine: engine-rn │
│ Template: @rnv/template-starter │
│ App Config (-c): app │
│ Build Scheme (-s): debug │
│ Supported Platforms: web, ios, android, androidtv, firetv, tvos, macos, linux, tizen, webos, chromecast, kaios, androidwear, tizenwatch
│ Env Info: darwin | arm64 | node v18.19.0 │
│ Executed Time: 0h:0m:42s:494ms │
│ warn: ○ project configure: Updates to package.json are required:
│ warn: ○ platform configure: Updates to package.json are required:
│ info: ✔ /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/[email protected]. FIXING...DONE
│ info: ✔ /@react-native-community/cli/build/bin.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json. FIXING...DONE
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/engine-rn/templates/platforms/macos/RNVApp/AppDelegate.mm
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/engine-rn/templates/platforms/macos/RNVApp/AppDelegate.h
│ error: ⨯ ○ configure: COMMAND:
bundle exec pod install
FAILED with ERROR:
[!] Invalid `Podfile` file: syntax error, unexpected '}', expecting =>
{{PLUGIN_PODFILE_SOURCES}}
^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:4: syntax error, unexpected '}', expecting =>
{{PLUGIN_WARNINGS}}
^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:46: syntax error, unexpected '}', expecting =>
{{PLUGIN_PATHS}}
^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:57: syntax error, unexpected '}', expecting =>
... = [{{PLUGIN_STATIC_FRAMEWORKS}}]
... ^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:61: syntax error, unexpected '}', expecting =>
...IN_STATIC_POD_EXTRA_CONDITIONS}}
... ^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:66: syntax error, unexpected '}', expecting =>
...{{PLUGIN_STATIC_POD_DEFINITION}}
... ^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:97: syntax error, unexpected '}', expecting =>
{{PLUGIN_PODFILE_INJECT}}
^
.
# from /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:1
# -------------------------------------------
Error: Command failed with exit code 1: bundle exec pod install
[!] Invalid `Podfile` file: syntax error, unexpected '}', expecting =>
{{PLUGIN_PODFILE_SOURCES}}
^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:4: syntax error, unexpected '}', expecting =>
{{PLUGIN_WARNINGS}}
^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:46: syntax error, unexpected '}', expecting =>
{{PLUGIN_PATHS}}
^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:57: syntax error, unexpected '}', expecting =>
... = [{{PLUGIN_STATIC_FRAMEWORKS}}]
... ^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:61: syntax error, unexpected '}', expecting =>
...IN_STATIC_POD_EXTRA_CONDITIONS}}
... ^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:66: syntax error, unexpected '}', expecting =>
...{{PLUGIN_STATIC_POD_DEFINITION}}
... ^
/Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:97: syntax error, unexpected '}', expecting =>
{{PLUGIN_PODFILE_INJECT}}
^
.
# from /Users/gabriele/Desktop/rnv_new/macos/platformBuilds/app_macos/Podfile:1
# -------------------------------------------
> {{PLUGIN_PODFILE_SOURCES}}
# platform :ios, '15.0'
# -------------------------------------------
at makeError (/Users/gabriele/Desktop/rnv_new/macos/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/gabriele/Desktop/rnv_new/macos/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
│ Project location: ./platformBuilds/app_macos/RNVApp.xcworkspace │
└─────────────────────────────────────────────────────────────────┘
➜ macos git:(master)
Third way:
- Repeat all steps on Second way
- Do
npx rnv run -p macos
-> error
➜ macos git:(master) ✗ npx rnv run -p macos
┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │
│ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │
│ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │
│ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │
│ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │
│ $ npx rnv run -p macos │
└─────────────────────────────────────────────────────────────────┘
info: Current engine: engine-rn-electron (./node_modules/@rnv/engine-rn-electron)
task: ○ run ↺1
task: ○ configure ↺1
task: ○ platform configure ↺1
task: ○ project configure ↺1
task: ○ workspace configure ↺1
task: ✔ workspace configure
task: ○ app configure ↺1
info: Current app config: app
task: ✔ app configure
info: ./node_modules/@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js overriden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/[email protected]
info: ./node_modules/@react-native-community/cli/build/bin.js overriden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json
task: ✔ project configure
info: Current Build Scheme: debug
task: ✔ platform configure
info: Found custom assetSources at ./node_modules/@flexn/assets-renative-outline/assets/macos. Will be used to generate assets.
task: ✔ configure
info: Your macos devServer at port 8086 is not running. Starting it up for you...
info: Your macos devServerHost 127.0.0.1 at port 8086 is not running. Starting it up for you...
┌─────────────────────────────────────────────────────────────────┐
│ ✔ BUNDLER STARTED | 4/11/2024, 10:38:32 AM | rnv@ │
│ $ npx rnv run -p macos │
├─────────────────────────────────────────────────────────────────┤
│ Project: [email protected] │
│ Workspace: rnv │
│ Platform (-p): macos │
│ Engine: engine-rn-electron │
│ Template: @rnv/template-starter │
│ App Config (-c): app │
│ Build Scheme (-s): debug │
│ Supported Platforms: web, ios, android, androidtv, firetv, tvos, macos, linux, tizen, webos, chromecast, kaios, androidwear, tizenwatch
│ Env Info: darwin | arm64 | node v18.19.0 │
│ Executed Time: 0h:0m:0s:235ms │
│ Project location: ./platformBuilds/app_macos │
└─────────────────────────────────────────────────────────────────┘
error: ⨯ ○ run: Error: Cannot find module 'babel-loader'
Require stack:
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/sdk-webpack/lib/config/webpack.config.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/sdk-webpack/lib/scripts/start.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/sdk-webpack/lib/index.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/engine-rn-electron/lib/sdk/runner.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/engine-rn-electron/lib/tasks/taskBuild.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/engine-rn-electron/lib/index.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/core/lib/engines/index.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/core/lib/tasks/taskHelpers.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/core/lib/tasks/taskFinder.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/core/lib/index.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/cli/lib/index.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/cli/lib/bin.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Function.resolve (node:internal/modules/helpers:188:19)
at module.exports (/Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/sdk-webpack/src/config/webpack.config.js:390:45)
at Object.<anonymous> (/Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/sdk-webpack/src/scripts/start.js:29:67)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Function.Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
┌─────────────────────────────────────────────────────────────────┐
│ ⨯ SUMMARY | 4/11/2024, 10:38:32 AM | rnv@ │
│ $ npx rnv run -p macos │
├─────────────────────────────────────────────────────────────────┤
│ Project: [email protected] │
│ Workspace: rnv │
│ Platform (-p): macos │
│ Engine: engine-rn-electron │
│ Template: @rnv/template-starter │
│ App Config (-c): app │
│ Build Scheme (-s): debug │
│ Supported Platforms: web, ios, android, androidtv, firetv, tvos, macos, linux, tizen, webos, chromecast, kaios, androidwear, tizenwatch
│ Env Info: darwin | arm64 | node v18.19.0 │
│ Executed Time: 0h:0m:1s:16ms │
│ error: ⨯ ○ run: Error: Cannot find module 'babel-loader'
Require stack:
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/sdk-webpack/lib/config/webpack.config.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/sdk-webpack/lib/scripts/start.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/sdk-webpack/lib/index.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/engine-rn-electron/lib/sdk/runner.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/engine-rn-electron/lib/tasks/taskBuild.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/engine-rn-electron/lib/index.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/core/lib/engines/index.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/core/lib/tasks/taskHelpers.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/core/lib/tasks/taskFinder.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/core/lib/index.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/cli/lib/index.js
- /Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/cli/lib/bin.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Function.resolve (node:internal/modules/helpers:188:19)
at module.exports (/Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/sdk-webpack/src/config/webpack.config.js:390:45)
at Object.<anonymous> (/Users/gabriele/Desktop/rnv_new/macos/node_modules/@rnv/sdk-webpack/src/scripts/start.js:29:67)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Function.Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
│ Project location: ./platformBuilds/app_macos │
└─────────────────────────────────────────────────────────────────┘
➜ macos git:(master) ✗
Desktop (please complete the following information):
- OS: macOS Ventura 13.6.4 (M2)
- Node Version 18.19.0
- RNV Version 1.0.0-rc.16
- @rnv/template-starter 1.0.0-rc.16
1.0.0-rc.18
- First way different error ->
➜ macos git:(master) ✗ npx rnv run -p macos
┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │
│ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │
│ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │
│ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │
│ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │
│ $ npx rnv run -p macos │
└─────────────────────────────────────────────────────────────────┘
info: Some engines not installed in your project:
> @rnv/[email protected]
> @rnv/[email protected]
> @rnv/[email protected]
> @rnv/[email protected]
> @rnv/[email protected]
ADDING TO PACKAGE.JSON...DONE
✔ Executing: yarn
info: Current engine: @rnv/engine-rn-electron (./node_modules/@rnv/engine-rn-electron)
task: ○ run ↺1
info: Build hooks not complied. BUILDING...
task: ○ configure ↺1
task: ○ platform configure ↺1
task: ○ project configure ↺1
info: Creating folder ./platformBuilds ...DONE
task: ○ workspace configure ↺1
task: ✔ workspace configure
task: ○ app configure ↺1
info: Found only one app config available. Will use app
info: Current app config: app
warn: ○ project configure: Updates to package.json are required:
- raf (N/A) => (3.4.1) Missing dependency for platform tizen | engine.npm (@rnv/engine-rn-web)
? What to do? Update package and install (recommended)
✔ Executing: yarn
task: ✔ app configure
task: ✔ project configure
info: Current Build Scheme: debug
warn: ○ platform configure: Updates to package.json are required:
- react (N/A) => (18.2.0) Missing dependency | plugin (renative.json)
- react-art (N/A) => (18.2.0) Missing dependency | plugin (renative.json)
- react-dom (N/A) => (18.2.0) Missing dependency | plugin (renative.json)
- react-native (N/A) => (0.73.4) Missing dependency | plugin (renative.json)
- react-native-web (N/A) => (0.19.9) Missing dependency | plugin (renative.json)
- @rnv/renative (N/A) => (1.0.0-rc.18) Missing dependency | plugin (renative.json)
- react-native-gesture-handler (N/A) => (2.14.1) Missing dependency | plugin (renative.json)
? What to do? Update package and install (recommended)
✔ Executing: yarn
info: ✔ /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/[email protected]. FIXING...DONE
info: ✔ /@react-native-community/cli/build/bin.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json. FIXING...DONE
task: ✔ platform configure
info: Found custom assetFolderPlatform: electron. Will use it instead of deafult macos
info: Found custom assetSources at ./node_modules/@flexn/assets-renative-outline/assets/electron. Will be used to generate assets.
task: ✔ configure
info: Your macos devServer at port 8086 is not running. Starting it up for you...
info: Your macos devServerHost 127.0.0.1 at port 8086 is not running. Starting it up for you...
┌─────────────────────────────────────────────────────────────────┐
│ ⚠ BUNDLER STARTED | 5/3/2024, 1:12:03 PM | rnv@ │
│ $ npx rnv run -p macos │
├─────────────────────────────────────────────────────────────────┤
│ Project: [email protected] │
│ Workspace: rnv │
│ Platform (-p): macos │
│ Engine: @rnv/engine-rn-electron │
│ Template: @rnv/template-starter │
│ App Config (-c): app │
│ Build Scheme (-s): debug │
│ Supported Platforms: web, ios, android, androidtv, firetv, tvos, macos, linux, tizen, webos, chromecast, kaios, androidwear, tizenwatch
│ Env Info: darwin | arm64 | node v18.19.0 │
│ Executed Time: 0h:1m:41s:984ms │
│ warn: ○ project configure: Updates to package.json are required:
│ warn: ○ platform configure: Updates to package.json are required:
│ info: ✔ /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/[email protected]. FIXING...DONE
│ info: ✔ /@react-native-community/cli/build/bin.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json. FIXING...DONE
│ Project location: ./platformBuilds/app_macos │
└─────────────────────────────────────────────────────────────────┘
error: ⨯ ○ run: Error: Cannot find module 'babel-loader'
Require stack:
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/sdk-webpack/lib/config/webpack.config.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/sdk-webpack/lib/scripts/start.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/sdk-webpack/lib/index.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/engine-rn-electron/lib/sdk/runner.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/engine-rn-electron/lib/tasks/taskBuild.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/engine-rn-electron/lib/index.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/core/lib/engines/index.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/core/lib/tasks/taskHelpers.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/core/lib/tasks/taskFinder.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/core/lib/index.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/cli/lib/index.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/cli/lib/bin.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Function.resolve (node:internal/modules/helpers:188:19)
at module.exports (/Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/sdk-webpack/src/config/webpack.config.js:390:45)
at Object.<anonymous> (/Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/sdk-webpack/src/scripts/start.js:29:67)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Function.Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
┌─────────────────────────────────────────────────────────────────┐
│ ⨯ SUMMARY | 5/3/2024, 1:12:04 PM | rnv@ │
│ $ npx rnv run -p macos │
├─────────────────────────────────────────────────────────────────┤
│ Project: [email protected] │
│ Workspace: rnv │
│ Platform (-p): macos │
│ Engine: @rnv/engine-rn-electron │
│ Template: @rnv/template-starter │
│ App Config (-c): app │
│ Build Scheme (-s): debug │
│ Supported Platforms: web, ios, android, androidtv, firetv, tvos, macos, linux, tizen, webos, chromecast, kaios, androidwear, tizenwatch
│ Env Info: darwin | arm64 | node v18.19.0 │
│ Executed Time: 0h:1m:42s:910ms │
│ warn: ○ project configure: Updates to package.json are required:
│ warn: ○ platform configure: Updates to package.json are required:
│ info: ✔ /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/[email protected]. FIXING...DONE
│ info: ✔ /@react-native-community/cli/build/bin.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json. FIXING...DONE
│ error: ⨯ ○ run: Error: Cannot find module 'babel-loader'
Require stack:
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/sdk-webpack/lib/config/webpack.config.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/sdk-webpack/lib/scripts/start.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/sdk-webpack/lib/index.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/engine-rn-electron/lib/sdk/runner.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/engine-rn-electron/lib/tasks/taskBuild.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/engine-rn-electron/lib/index.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/core/lib/engines/index.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/core/lib/tasks/taskHelpers.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/core/lib/tasks/taskFinder.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/core/lib/index.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/cli/lib/index.js
- /Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/cli/lib/bin.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Function.resolve (node:internal/modules/helpers:188:19)
at module.exports (/Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/sdk-webpack/src/config/webpack.config.js:390:45)
at Object.<anonymous> (/Users/gabriele/Desktop/nauji/macos/node_modules/@rnv/sdk-webpack/src/scripts/start.js:29:67)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Function.Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
│ Project location: ./platformBuilds/app_macos │
└─────────────────────────────────────────────────────────────────┘
➜ macos git:(master) ✗
- second and third way - same error as before
related to https://github.com/flexn-io/renative/issues/1508
Should be fixed in this PR https://github.com/flexn-io/renative/pull/1541
works on rc.19