flexn-io / renative

🚀🚀🚀 Unified Development Platform for iOS, tvOS, Android, Android TV, Android Wear, Web, Tizen TV, Tizen Watch, Tizen Mobile, LG webOS, macOS/OSX, Windows, KaiOS, FirefoxOS Firefox TV platforms
https://renative.org
MIT License
1.78k stars 182 forks source link

[macos, tizen, webos] run fails on new project #1509

Open GabrieleKaceviciute opened 2 months ago

GabrieleKaceviciute commented 2 months ago

Describe the bug Macos run fails on new project (three different ways)

To Reproduce First way:

  1. Install rnv via npm
  2. Create new project
  3. 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 | rnv@1.0.0-rc.16            │
│ $ rnv new                                                       │
├─────────────────────────────────────────────────────────────────┤
│ Project: zxc@0.1.0                                              │
│ 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/template-starter@1.0.0-rc.16
  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/engine-rn-next@1.0.0-rc.16
> @rnv/engine-rn@1.0.0-rc.16
> @rnv/engine-rn-tvos@1.0.0-rc.16
> @rnv/engine-rn-electron@1.0.0-rc.16
> @rnv/engine-rn-web@1.0.0-rc.16
 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: zxc@0.1.0                                              │
│ 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:

  1. Create new project
  2. Do npx rnv run -> error
  3. 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:

? 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:

? 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/overrides@11.3.7.json. 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: macos@0.1.0 │ │ 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/overrides@11.3.7.json. 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**:
1. Repeat all steps on **Second way**
2.  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/overrides@11.3.7.json 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: macos@0.1.0 │ │ 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:

┌─────────────────────────────────────────────────────────────────┐ │ ⨯ SUMMARY | 4/11/2024, 10:38:32 AM | rnv@ │ │ $ npx rnv run -p macos │ ├─────────────────────────────────────────────────────────────────┤ │ Project: macos@0.1.0 │ │ 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:

│ 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
GabrieleKaceviciute commented 2 months ago

1.0.0-rc.18

┌─────────────────────────────────────────────────────────────────┐ │ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │ │ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │ │ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │ │ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │ │ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │ │ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │ │ $ npx rnv run -p macos │ └─────────────────────────────────────────────────────────────────┘ info: Some engines not installed in your project:

@rnv/engine-rn-next@1.0.0-rc.18 @rnv/engine-rn@1.0.0-rc.18 @rnv/engine-rn-tvos@1.0.0-rc.18 @rnv/engine-rn-electron@1.0.0-rc.18 @rnv/engine-rn-web@1.0.0-rc.18 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:

? 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/overrides@11.3.7.json. 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: macos@0.1.0 │ │ 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/overrides@11.3.7.json. 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:

┌─────────────────────────────────────────────────────────────────┐ │ ⨯ SUMMARY | 5/3/2024, 1:12:04 PM | rnv@ │ │ $ npx rnv run -p macos │ ├─────────────────────────────────────────────────────────────────┤ │ Project: macos@0.1.0 │ │ 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/overrides@11.3.7.json. 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:

│ Project location: ./platformBuilds/app_macos │ └─────────────────────────────────────────────────────────────────┘ ➜ macos git:(master) ✗



- second and third way - same error as before
GabrieleKaceviciute commented 1 month ago

related to https://github.com/flexn-io/renative/issues/1508

ElenaDiachenko commented 1 month ago

Should be fixed in this PR https://github.com/flexn-io/renative/pull/1541

pauliusguzas commented 1 month ago

works on rc.19