Files
store/package.json
zeekayandHanzo Dev 0244eb6fa8 Declare react-native, so the gui type surface resolves
main does not build. `npm ci && npm run build` on 8f26bf5 — before any change of
mine — fails twice on the same missing package:

  webpack  @react-native/assets-registry/registry, via react-native-svg's
           resolveAssetUri, reached from elements.web.js
  tsc      @hanzogui/element/src/types.ts:1 imports `type { View }` from
           'react-native'

Both are the 8.x gui substrate asking for react-native to be present. It is a
devDependency, not a runtime one: `react-native$` is aliased to react-native-web
in next.config.mjs, so nothing from it reaches the bundle — it supplies the types
tsc reads and the asset registry webpack resolves against. hanzoai/identity's
dapp already declares it for exactly this reason, so this is the sibling repo's
answer rather than a new one.

Deliberately NOT a `resolve.fallback` entry for the registry. That would have
silenced the webpack half while leaving the type error, so it would have been two
mechanisms papering over one absent package — and the first fix I tried, which is
how the second failure surfaced at all.

209 pages export again.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-04 19:02:53 -07:00

47 lines
1.2 KiB
JSON

{
"name": "hanzo-store",
"version": "0.2.0",
"private": true,
"scripts": {
"dev": "next dev -p 3200",
"build": "next build",
"css-check": "node scripts/css-check.mjs",
"start": "next start -p 3200",
"lint": "next lint",
"typecheck": "tsc --noEmit",
"generate-store": "node scripts/generate-store.js",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:debug": "playwright test --debug"
},
"dependencies": {
"@hanzo/design": "^0.4.6",
"@hanzo/event": "^0.3.11",
"@hanzo/gui": "^8.0.2",
"@hanzo/logo": "^1.0.14",
"@hanzo/ui": "^8.0.47",
"@hanzogui/config": "^8.0.1",
"@rainbow-me/rainbowkit": "^2.2.9",
"@tanstack/react-query": "^5.90.7",
"lucide-react": "^0.462.0",
"next": "15.1.0",
"react": "19.2.8",
"react-dom": "19.2.8",
"react-native-svg": "15.15.5",
"react-native-web": "0.21.2",
"viem": "^2.38.6",
"wagmi": "^2.19.2"
},
"devDependencies": {
"@playwright/test": "^1.56.1",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^8",
"eslint-config-next": "^15.0.0",
"playwright": "^1.56.1",
"react-native": "^0.83.10",
"typescript": "^5.9.3"
}
}