Closed szebert closed 1 year ago
Facing same issue:
➜ t4-app git:(main) ✗ bun run web
$ cd apps/next && bun run dev
$ bun with-env next dev
$ dotenv -e ../../.env.local -- next dev
○ (pwa) PWA support is disabled.
○ (pwa) PWA support is disabled.
▲ Next.js 13.5.6
Experiments (use at your own risk): · scrollRestoration · forceSwcTransforms
✓ Ready in 6.6s ○ Compiling / ...
➡ [tamagui] built config and components (3001ms):
Config ./.tamagui/tamagui.config.cjs
Components ./.tamagui/tamagui-components.config.cjs
./.tamagui/t4ui-components.config.cjs
⚠️ Tamagui Warning [001]: Skipping loading /t4-app/apps/next/.tamagui/tamagui.config.cjs due to error bundling.
⚠️ Tamagui Warning [001]: Skipping loading /t4-app/apps/next/.tamagui/tamagui-components.config.cjs due to error bundling.
⚠️ Tamagui Warning [001]: Skipping loading /t4-app/apps/next/.tamagui/t4ui-components.config.cjs due to error bundling.
Missing theme, an error occurred when importing your config Got config: [Function (anonymous)] { displayName: 'ProxyWorm - Check excludeReactNativeWebExports', _isProxyWorm: true } Looking for theme: displayName
@natew Do you have any clue of what's going on?
No idea! Looks like some issues with circular imports maybe.
I added newer react-native deps in #98, now it should work after a bun clean
followed by a bun i
.
@albbus-stack I tried but not working. Here is the log:
rn-t4-app git:(feature/first) bun clean
$ git clean -xdf node_modules && rm bun.lockb
Removing node_modules/
➜ rn-t4-app git:(feature/first) ✗ bun i
[0.10ms] ".env.local"
bun install v1.0.7 (b0393fba)
+ @t4/api@workspace:packages/api
+ @t4/ui@workspace:packages/ui
+ app@workspace:packages/app
+ expo-app@workspace:apps/expo
+ next-app@workspace:apps/next
+ t4-app-docs@workspace:apps/docs
+ @babel/runtime@7.23.2
+ @manypkg/cli@0.21.0
+ @nderscore/tamagui-typescript-plugin@0.6.0
+ @supabase/supabase-js@2.38.4
+ check-dependency-version-consistency@4.1.0
+ cross-env@7.0.3
+ eslint@8.52.0
+ prettier@3.0.3
+ react-native-url-polyfill@2.0.0
+ turbo@1.10.16
+ typescript@5.2.2
+ workerd@1.20231025.0
$ cd packages/ui && tamagui-build
built @t4/ui in 389 ms
$ drizzle-kit generate:sqlite --schema=./src/db/schema.ts --out=./migrations
drizzle-kit: v0.19.13
drizzle-orm: v0.28.6
3 tables
Car 9 columns 0 indexes 0 fks
Test 2 columns 0 indexes 0 fks
User 2 columns 0 indexes 0 fks
No schema changes, nothing to migrate 😴
2057 packages installed [38.08s]
➜ rn-t4-app git:(feature/first) ✗ bun run web
$ cd apps/next && bun run dev
$ bun with-env next dev
$ dotenv -e ../../.env.local -- next dev
○ (pwa) PWA support is disabled.
○ (pwa) PWA support is disabled.
▲ Next.js 13.5.6
- Local: http://localhost:3000
- Environments: .env
- Experiments (use at your own risk):
· scrollRestoration
· forceSwcTransforms
✓ Ready in 9.1s
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving 'next/dist/compiled/webpack/webpack-lib' in /rn/rn-t4-app/node_modules/@tamagui/next-plugin/dist/cjs for build dependencies doesn't lead to expected result '/rn/rn-t4-app/node_modules/next/dist/compiled/webpack/webpack-lib.js', but to '/rn/rn-t4-app/node_modules/@tamagui/next-plugin/node_modules/next/dist/compiled/webpack/webpack-lib.js' instead. Resolving dependencies are ignored for this path.
<w> at unknown 4 next/dist/compiled/webpack/webpack-lib
<w> at file dependencies /rn/rn-t4-app/node_modules/@tamagui/next-plugin/dist/cjs/withTamagui.js
<w> at file /rn/rn-t4-app/node_modules/@tamagui/next-plugin/dist/cjs/withTamagui.js
<w> at file dependencies /rn/rn-t4-app/node_modules/@tamagui/next-plugin/dist/cjs/index.js
<w> at file /rn/rn-t4-app/node_modules/@tamagui/next-plugin/dist/cjs/index.js
<w> at file dependencies /rn/rn-t4-app/apps/next/next.config.js
<w> at file /rn/rn-t4-app/apps/next/next.config.js
<w> at resolve commonjs /rn/rn-t4-app/apps/next/next.config.js
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving 'next/dist/compiled/webpack/webpack-lib' in /rn/rn-t4-app/node_modules/@ducanh2912/next-pwa/dist for build dependencies doesn't lead to expected result '/rn/rn-t4-app/node_modules/next/dist/compiled/webpack/webpack-lib.js', but to '/rn/rn-t4-app/node_modules/@ducanh2912/next-pwa/node_modules/next/dist/compiled/webpack/webpack-lib.js' instead. Resolving dependencies are ignored for this path.
<w> at unknown 4 next/dist/compiled/webpack/webpack-lib
<w> at file dependencies /rn/rn-t4-app/node_modules/@ducanh2912/next-pwa/dist/index.cjs
<w> at file /rn/rn-t4-app/node_modules/@ducanh2912/next-pwa/dist/index.cjs
<w> at file dependencies /rn/rn-t4-app/apps/next/next.config.js
<w> at file /rn/rn-t4-app/apps/next/next.config.js
<w> at resolve commonjs /rn/rn-t4-app/apps/next/next.config.js
○ Compiling / ...
➡ [tamagui] built config and components (4415ms):
Config ./.tamagui/tamagui.config.cjs
Components ./.tamagui/tamagui-components.config.cjs
./.tamagui/t4ui-components.config.cjs
⚠️ Tamagui Warning [001]: Skipping loading /rn/rn-t4-app/apps/next/.tamagui/tamagui.config.cjs due to error bundling.
- message: Cannot access 'View' before initialization
- for more info see: https://tamagui.dev/docs/intro/errors#warning-001
- set TAMAGUI_SHOW_FULL_BUNDLE_ERRORS=1 to see stack trace
⚠️ Tamagui Warning [001]: Skipping loading /rn/rn-t4-app/apps/next/.tamagui/tamagui-components.config.cjs due to error bundling.
- message: Cannot access 'View' before initialization
- for more info see: https://tamagui.dev/docs/intro/errors#warning-001
- set TAMAGUI_SHOW_FULL_BUNDLE_ERRORS=1 to see stack trace
⚠️ Tamagui Warning [001]: Skipping loading /rn/rn-t4-app/apps/next/.tamagui/t4ui-components.config.cjs due to error bundling.
- message: Cannot access 'View' before initialization
- for more info see: https://tamagui.dev/docs/intro/errors#warning-001
- set TAMAGUI_SHOW_FULL_BUNDLE_ERRORS=1 to see stack trace
Missing theme, an error occurred when importing your config
Got config: [Function (anonymous)] {
displayName: 'ProxyWorm - Check excludeReactNativeWebExports',
_isProxyWorm: true
}
Looking for theme: displayName
Try with bun clean:workspaces
and bun pm cache rm
why was this issue closed??? it's still persisting. I just installed today and get the exact same thing
Trying to get the most basic template running doing these steps:
pnpm create t4-app@latest test-t4-app
.env
and.dev.vars
files.dev.vars
andwrangler.toml
filesbun migrate:local
bun dev
Got this when trying to open localhost:3000 on the latest Chrome browser: