Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defaultRenderMode: 'spa' doesn't work on windows #526

Open
dansbana opened this issue Mar 22, 2025 · 0 comments
Open

defaultRenderMode: 'spa' doesn't work on windows #526

dansbana opened this issue Mar 22, 2025 · 0 comments
Labels
dev-env: windows Issues related to using Windows as the dev environment

Comments

@dansbana
Copy link

Current Behavior

When it is set to 'spa' the page is rendered blank.

I realize that windows is not yet supported but I spent a lot of time trying to get the zero example working on windows. I was able to narrow the problem down to the fact that the default render mode of 'spa' was the problem.

Changing it to 'ssg' the application started working. I'm hoping this bug report may help other people who are trying to test functionality on windows until you are able to resolve this issue.

Expected Behavior

I expected to install one using npx one and install the zero example and have it work with windows like the basic example. The basic example uses ssg while the zero version is set to spa.

One Version

"one": "1.1.446"

Platform (Web, iOS, Android)

Windows (Web, desktop, ios)

Reproduction

Change the default render mode in vite.config.ts to

defaultRenderMode: 'spa'

and the application will not work. Then change it to 

defaultRenderMode: 'ssg'

and the application works again.

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 9.59 GB / 31.90 GB
  Binaries:
    Node: 22.13.1 - ~\.nvm\versions\node\v22.13.1\bin\node.EXE
    Yarn: 1.22.22 - ~\.nvm\versions\node\v22.13.1\bin\yarn.CMD
    npm: 11.1.0 - ~\.nvm\versions\node\v22.13.1\bin\npm.CMD
  Browsers:
    Chrome: 134.0.6998.118
    Edge: Chromium (133.0.3065.82)
    Internet Explorer: 11.0.26100.1882
  npmPackages:
    @react-native-community/cli: 15.1.3 => 15.1.3
    @types/react: ^18.3.11 => 18.3.19
    expo: ~52.0.17 => 52.0.40
    one: 1.1.446 => 1.1.446
    react: ^19.0.0 => 19.0.0
    react-native: ^0.76.5 => 0.76.7
    react-native-reanimated: ~3.16.5 => 3.16.7
    react-native-safe-area-context: 4.10.5 => 4.10.5
    react-native-screens: 4.4.0 => 4.4.0
    react-native-web: ^0.19.12 => 0.19.13
    vite: ^6.1.0 => 6.2.2
@zetavg zetavg added the dev-env: windows Issues related to using Windows as the dev environment label Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-env: windows Issues related to using Windows as the dev environment
Projects
None yet
Development

No branches or pull requests

2 participants