renative
renative copied to clipboard
[kaios] Rnv asks to pick simulator even default target is defined
Describe the bug Rnv asks to pick simulator even default target is defined on global renative.json
To Reproduce
- Go to template-starter packages
- Make sure default target is set
- 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/[email protected]
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/[email protected] │
│ 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",