flexn-io/renative

Brand new project template on Linux for Linux does not work maybe

Opened this issue · 0 comments

Describe the bug
Your starter template does not run on Linux when installed on Linux.

To Reproduce
I will just give you my whole terminal, basically follow tutorial to start a new project, fresh install of everything, I sudo installed npm and Node.js for permissions needed. Uncheck ios and Android in platforms.
norvel@norvel4-ThinkPad-T460:~/Desktop/ReNativeTestXE$ rnv new

┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │
│ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │
│ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │
│ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │
│ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │
│ 🚀 v:1.9.1 | renative.org | 7/16/2025, 8:50:10 PM │
│ $ rnv new │
└─────────────────────────────────────────────────────────────────┘
info: Current engine: @rnv/engine-core (/usr/local/lib/node_modules/rnv/node_modules/@rnv/engine-core/lib)
task: ○ new ↺1
? What's your project Name? (folder will be created) Snayk
? What workspace to use? rnv
? What template to use? @rnv/template-starter - Multiplatform 'hello world' temp
late
✔ Executing: npm view @rnv/template-starter versions
✔ Executing: npm dist-tag ls @rnv/template-starter
? What @rnv/template-starter version to use? 1.9.1 (@latest)
✔ Executing: npm add @rnv/template-starter@1.9.1 --dev
✔ Executing: npm add @rnv/config-templates@1.9.1 --dev
? How to create config renative.json? Extend template (cleaner, overridable)
? What's your project Title? Snayk
? What's your App ID? com.gugquettex.snayk
? What's your project version? 1.0.0
? What platforms would you like to use? web, linux
? Do you want to set-up git in your new project? No
info: Missing directory ./Snayk/buildHooks. COPYING from TEMPLATE...DONE
info: Missing directory ./Snayk/src/app. COPYING from TEMPLATE...DONE
info: Missing directory ./Snayk/src/entry. COPYING from TEMPLATE...DONE
info: Missing file ./Snayk/src/config.tsx. COPYING from TEMPLATE...DONE
info: Missing file ./Snayk/index.js. COPYING from TEMPLATE...DONE
info: Missing file ./Snayk/tsconfig.json. COPYING from TEMPLATE...DONE
info: Missing file ./Snayk/babel.config.js. COPYING from TEMPLATE...DONE
info: Missing directory ./Snayk/typings. COPYING from TEMPLATE...DONE
info: Missing directory ./Snayk/appConfigs/app. COPYING from TEMPLATE...DONE
info: Missing directory ./Snayk/appConfigs/base/assets. COPYING from TEMPLATE...DONE
info: Missing directory ./Snayk/appConfigs/base/fonts. COPYING from TEMPLATE...DONE
info: Missing directory ./Snayk/scripts. COPYING from TEMPLATE...DONE
info: Missing file ./Snayk/next.config.js. COPYING from TEMPLATE...DONE
info: Missing file ./Snayk/next-env.d.ts. COPYING from TEMPLATE...DONE
info: Missing directory ./Snayk/src/pages. COPYING from TEMPLATE...DONE
info: Missing file ./Snayk/webpack.config.js. COPYING from TEMPLATE...DONE
info: .rnv folder missing. CREATING...DONE
info: .rnv/schemas folder missing. CREATING...DONE
info: Updating appConfig app with title: Snayk and id: com.gugquettex.snayk
? To avoid the issue with the resolving peer dependencies .npmrc file with conte
nt: "legacy-peer-deps=true" will be added to your project Yes
? You do not have any engines installed. Do you want to install them now? Yes
✔ Executing: npm add @rnv/engine-rn-next@1.9.1 --dev
✔ Executing: npm add @rnv/engine-rn-electron@1.9.1 --dev
? Project is ready. Do you want to install all dependencies now? Yes
✔ Executing: npm install
task: ✔ new
┌─────────────────────────────────────────────────────────────────┐
│ ✔ SUMMARY | 7/16/2025, 8:56:40 PM | rnv@1.9.1 │
│ $ rnv new │
├─────────────────────────────────────────────────────────────────┤
│ Project: snayk@1.0.0 │
│ Workspace: rnv │
│ Engine: @rnv/engine-core │
│ Template: @rnv/template-starter │
│ Build Scheme (-s): debug │
│ Env Info: linux | x64 | node v18.19.1 │
│ Executed Time: 0h:6m:30s:139ms │

Generated Project Summary:

Project Name (--projectName): Snayk
Package name: snayk
Project Version (--appVersion): 1.0.0
Workspace (--workspace): rnv
App Title (--title): Snayk
App ID (--id): com.gugquettex.snayk
Project Template (--template): @rnv/template-starter@1.9.1
Git Enabled (--gitEnabled): false
Enabled Platforms: web, linux

✔ Your project is ready! Run it with:

cd Snayk
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
└─────────────────────────────────────────────────────────────────┘
norvel@norvel4-ThinkPad-T460:/Desktop/ReNativeTestXE$ cd Snayk
norvel@norvel4-ThinkPad-T460:
/Desktop/ReNativeTestXE/Snayk$ npx rnv run -p linux

┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │
│ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │
│ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │
│ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │
│ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │
│ $ npx rnv run -p linux │
└─────────────────────────────────────────────────────────────────┘
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
task: ✔ app configure
info: ./node_modules/@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js overridden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@12.3.6.json
info: ./node_modules/@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js overridden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@12.3.6.json
info: ./node_modules/@react-native-community/cli-platform-ios/build/commands/runIOS/index.js overridden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@12.3.6.json
info: ./node_modules/@react-native-community/cli-platform-ios/build/commands/runIOS/index.js overridden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@12.3.6.json
info: ./node_modules/@react-native-community/cli-platform-ios/build/commands/runIOS/index.js overridden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@12.3.6.json
info: ./node_modules/@react-native-community/cli-platform-ios/build/commands/runIOS/index.js overridden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@12.3.6.json
info: ./node_modules/@react-native-community/cli/build/bin.js overridden 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 assetFolderPlatform: electron. Will use it instead of default linux
info: Found custom assetSources at ./node_modules/@flexn/assets-renative-outline/assets/electron. Will be used to generate assets.
task: ✔ configure
info: Your linux devServer at port 8100 is not running. Starting it up for you...
info: Your linux devServerHost 127.0.0.1 at port 8100 is not running. Starting it up for you...
┌─────────────────────────────────────────────────────────────────┐
│ ✔ BUNDLER STARTED | 7/16/2025, 8:57:16 PM | rnv@ │
│ $ npx rnv run -p linux │
├─────────────────────────────────────────────────────────────────┤
│ Project: snayk@1.0.0 │
│ Workspace: rnv │
│ Platform (-p): linux │
│ Engine: @rnv/engine-rn-electron │
│ Template: @rnv/template-starter │
│ App Config (-c): app │
│ Build Scheme (-s): debug │
│ Supported Platforms: web, linux │
│ Env Info: linux | x64 | node v18.19.1 │
│ Executed Time: 0h:0m:2s:522ms │
│ Project location: ./platformBuilds/app_linux │
└─────────────────────────────────────────────────────────────────┘
error: ⨯ ○ run: Error: Cannot find module '/home/norvel/Desktop/ReNativeTestXE/Snayk/node_modules/react-refresh/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:437:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:705:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1120:27)
at Function.resolve (node:internal/modules/helpers:188:19)
at Object. (/home/norvel/Desktop/ReNativeTestXE/Snayk/node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/utils/injectRefreshLoader.js:16:47)
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)

┌─────────────────────────────────────────────────────────────────┐
│ ⨯ SUMMARY | 7/16/2025, 8:57:19 PM | rnv@ │
│ $ npx rnv run -p linux │
├─────────────────────────────────────────────────────────────────┤
│ Project: snayk@1.0.0 │
│ Workspace: rnv │
│ Platform (-p): linux │
│ Engine: @rnv/engine-rn-electron │
│ Template: @rnv/template-starter │
│ App Config (-c): app │
│ Build Scheme (-s): debug │
│ Supported Platforms: web, linux │
│ Env Info: linux | x64 | node v18.19.1 │
│ Executed Time: 0h:0m:4s:695ms │
│ error: ⨯ ○ run: Error: Cannot find module '/home/norvel/Desktop/ReNativeTestXE/Snayk/node_modules/react-refresh/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:437:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:705:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1120:27)
at Function.resolve (node:internal/modules/helpers:188:19)
at Object. (/home/norvel/Desktop/ReNativeTestXE/Snayk/node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/utils/injectRefreshLoader.js:16:47)
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)

│ Project location: ./platformBuilds/app_linux │
└─────────────────────────────────────────────────────────────────┘
norvel@norvel4-ThinkPad-T460:~/Desktop/ReNativeTestXE/Snayk$

Expected behavior
I expected the starter template to build successfully.

Screenshots or copy&paste
Nothing but the above text to show.

Desktop (please complete the following information):

  • OS: Ubuntu 24.04 desktop Pro
  • Node Version latest as of now, 7/16/2025.
  • RNV Version Whatever comes latest as of now.

Additional context
I have tried two projects and same errors as above. All as per one might be maybe or might not be maybe, maybe or maybe not, maybe.