obytes / react-native-template-obytes

📱 A template for your next React Native project: Expo, PNPM, TypeScript, TailwindCSS, Husky, EAS, GitHub Actions, Env Vars, expo-router, react-query, react-hook-form.
https://starter.obytes.com
MIT License
2.21k stars 321 forks source link

yarn run web crashes with base installation #50

Closed nikkwong closed 6 months ago

nikkwong commented 1 year ago

Summary:

Did a clean install. Node v16. yarn run web fails to load anything in browser, resulting in:

constants.js:85 Uncaught TypeError: Cannot read properties of undefined (reading 'out')
    at ./node_modules/@gorhom/bottom-sheet/lib/module/constants.js (constants.js:85:1)
    at __webpack_require__ (bootstrap:789:1)
    at fn (bootstrap:100:1)
    at ./node_modules/@gorhom/bottom-sheet/lib/module/hooks/useScrollable.js (useScrollable.js:1:1)
    at __webpack_require__ (bootstrap:789:1)

&

index.js:1 ./node_modules/react-native-reanimated/lib/index.web.js 5:9
Module parse failed: Unexpected token (5:9)
File was processed with these loaders:
 * ./node_modules/@expo/webpack-config/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| export * from "./reanimated1";
| export * from "./reanimated2";
> export * as default from "./Animated";

&

VM117:2 Uncaught ReferenceError: process is not defined
    at 4043 (<anonymous>:2:13168)
    at r (<anonymous>:2:306599)
    at 8048 (<anonymous>:2:9496)
    at r (<anonymous>:2:306599)
    at 8641 (<anonymous>:2:1379)
    at r (<anonymous>:2:306599)
    at <anonymous>:2:315627
    at <anonymous>:2:324225
    at <anonymous>:2:324229
    at e.onload (index.js:1:1)

Steps to reproduce:

yarn run web

Expected behavior:

Loading properly. Thank you!

benszabo commented 1 year ago

how were you able to resolve this? I am experiencing the same issue.

silostack commented 1 year ago

same here

yjose commented 1 year ago

Unfortunately we are not supporting running the starter on the web as we are using some deps that not yet working correctly on the web such us @gorhom/bottom-sheet package.

PRs appreciated, if you can help us support web with the starter

github-actions[bot] commented 7 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days