Skip to content
This repository was archived by the owner on Jun 22, 2026. It is now read-only.

docs: add client-side framework setup instructions to avoid WASM errors - #52

Open
ArsiAda wants to merge 2 commits into
FhenixProtocol:mainfrom
ArsiAda:main
Open

ArsiAda wants to merge 2 commits into
FhenixProtocol:mainfrom
ArsiAda:main

Conversation

@ArsiAda

@ArsiAda ArsiAda commented Feb 1, 2026

Copy link
Copy Markdown

This PR adds a new section to the documentation explaining how to use Fhenix.js
in client-side frameworks like Next.js and React (Vite) to avoid errors related
to the WebAssembly file (tfhe_bg.wasm).

Changes include:

  • Instructions for Next.js with SSR disabled for Fhenix.js components
  • Vite + React example configuration with wasm and top-level await plugins
  • Alternative usage via UMD build
  • Notes emphasizing client-side only usage

These changes should help developers avoid common WASM import errors
and make Fhenix.js integration smoother in modern frontend frameworks.

Clarified usage for Next.js (SSR disabled), Vite + React, and UMD builds.  Emphasized client-side only usage to avoid WASM errors.

This branch has not been deployed

No deployments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant