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

Home Page:https://renative.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[kaios] Rnv asks to pick simulator even default target is defined

GabrieleKaceviciute opened this issue Β· comments

Describe the bug
Rnv asks to pick simulator even default target is defined on global renative.json

To Reproduce

  1. Go to template-starter packages
  2. Make sure default target is set
  3. Do npx rnv run -p kaios -> rnv asks to pick sim

Expected behavior
App launches on default simulator

Screenshots or copy&paste

/Desktop/qa/renative/packages/template-starter$ npx rnv run -p kaios

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β”‚
β”‚ β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β• β”‚
β”‚ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—   β”‚
β”‚ β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β•β•   β”‚
β”‚ β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β”‚
β”‚ β•šβ•β•  β•šβ•β•β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β•β•β•β•šβ•β•  β•šβ•β•   β•šβ•β•   β•šβ•β•  β•šβ•β•β•β•  β•šβ•β•β•β•β•β•β• β”‚
β”‚ $ rnv run -p kaios                                              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
info: Current engine: @rnv/engine-rn-web (./node_modules/@rnv/engine-rn-web)
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: template
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
info: ../../node_modules/react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js overriden by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json
info: ../../node_modules/react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js overriden by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json
info: ../../node_modules/react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js overriden by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json
task: βœ” project configure
info: Current Build Scheme: debug
task: βœ” platform configure
warn: β—‹ configure: AssetSources is specified as {{resolvePackage(@flexn/assets-renative-outline)}}/assets. But path ../../node_modules/@flexn/assets-renative-outline/assets/kaios was not found.
warn: β—‹ configure: Your app is missing assets at ./appConfigs/base,./appConfigs/template.
task: βœ” configure
info: Your kaios devServer at port 8093 is not running. Starting it up for you...
info: Your kaios devServerHost 127.0.0.1 at port 8093 is not running. Starting it up for you...
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ ⚠ BUNDLER STARTED | 5/29/2024, 12:38:28 PM | rnv@               β”‚
β”‚ $ rnv run -p kaios                                              β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Project: @rnv/template-starter@1.0.0-rc.19                      β”‚
β”‚ Workspace: rnv                                                  β”‚
β”‚ Platform (-p): kaios                                            β”‚
β”‚ Engine: @rnv/engine-rn-web                                      β”‚
β”‚ App Config (-c): template                                       β”‚
β”‚ Build Scheme (-s): debug                                        β”‚
β”‚ Target (-t): kaiosrt-v2.5.en-US.linux-x86_64                    β”‚
β”‚ Supported Platforms: ios, android, androidtv, firetv, androidwear, web, tizen, tvos, webos, macos, windows, tizenwatch, kaios, chromecast, linux, windows
β”‚ Env Info: linux | x64 | node v18.20.2                           β”‚
β”‚ Executed Time: 0h:0m:1s:279ms                                   β”‚
β”‚ warn: β—‹ configure: AssetSources is specified as {{resolvePackage(@flexn/assets-renative-outline)}}/assets. But path ../../node_modules/@flexn/assets-renative-outline/assets/kaios was not found.
β”‚ warn: β—‹ configure: Your app is missing assets at ./appConfigs/base,./appConfigs/template.
β”‚ 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 run -p kaios
β”‚ Project location: ./platformBuilds/template_kaios               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
warn: β—‹ run: You are missing chii. You can install via npm i -g chii) Trying to use weinre next
warn: β—‹ run: You are missing weinre. Skipping debug. install via npm i -g weinre
(node:29122) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:29122) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
Starting the development server...

Compiled successfully!

You can now view @rnv/template-starter in the browser.

  Local:            http://localhost:8093/
  On Your Network:  http://192.168.1.158:8093/

Note that the development build is not optimized.
To create a production build, use npm run build.

assets by path static/ 3.47 MiB
  asset static/js/bundle.js 3.16 MiB [emitted] (name: main) 1 related asset
  asset static/media/Inter-Light.58a136ec3193fa8a63e5.ttf 303 KiB [emitted] [immutable] [from: appConfigs/base/fonts/Inter-Light.ttf] (auxiliary name: main)
  asset static/media/logo.63d54a55b067ffc3e842.png 12.1 KiB [emitted] [immutable] [from: platformAssets/runtime/logo.png] (auxiliary name: main)
asset index.html 1.68 KiB [emitted]
asset asset-manifest.json 356 bytes [emitted]
cached modules 2.64 MiB (javascript) 303 KiB (asset) 28.8 KiB (runtime) [cached] 671 modules
modules by layer 2.03 KiB (javascript) 12.1 KiB (asset)
  ./platformAssets/runtime/fontManager.web.js 1.99 KiB [built]
  ./platformAssets/runtime/logo.png 42 bytes (javascript) 12.1 KiB (asset) [built]
webpack 5.91.0 compiled successfully in 3515 ms
Files successfully emitted, waiting for typecheck results...
Issues checking in progress...
? What simulator would you like to launch? (Use arrow keys)
❯ kaiosrt-v2.5.en-US.linux-x86_64 No issues found.

Desktop (please complete the following information):

  • OS: Ubuntu 20.04.5
  • Node Version 18.20.2
  • RNV Version 1.0.0-rc.19

Additional context
default target is set on global renative.json:

  "defaultTargets": {
    "kaios": "kaiosrt-v2.5.en-US.linux-x86_64",