test1 #2
Annotations
2 errors
Run tests:
apps/next/__tests__/build.test.ts#L6
Error: Command failed: yarn build
Failed to compile.
./app/layout.tsx
Error:
x You're importing a component that needs useServerInsertedHTML. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default.
| Learn more: https://nextjs.org/docs/getting-started/react-essentials
|
|
,-[/home/runner/work/tamagui-test/tamagui-test/apps/next/app/layout.tsx:6:1]
6 | import { Metadata } from 'next'
7 | import { ReactNode } from 'react'
8 | import { AppRegistry } from 'react-native'
9 | import { useServerInsertedHTML } from 'next/navigation'
: ^^^^^^^^^^^^^^^^^^^^^
10 | import { NextTamaguiProvider } from './NextTamaguiProvider'
11 | import { config } from '@my/ui'
`----
Import trace for requested module:
./app/layout.tsx
> Build failed because of webpack errors
❯ apps/next/__tests__/build.test.ts:6:23
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, 'built @my/config in 35 ms\nbuilt @my/ui in 272 ms\nDone in 1s 479ms\n\n\nWelcome to Tamagui!\n\nYou can update this monorepo to the latest Tamagui release just by running:\n\nyarn upgrade:tamagui\n\nWe\'ve set up a few things for you.\n\nSee the "excludeReactNativeWebExports" setting in next.config.js, which omits these\nfrom the bundle: Switch, ProgressBar Picker, CheckBox, Touchable. To save more,\nyou can add ones you don\'t need like: AnimatedFlatList, FlatList, SectionList,\nVirtualizedList, VirtualizedSectionList.\n\n🐣\n\nRemove this log in next.config.js.\n\n\n⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache\nAttention: Next.js now collects completely anonymous telemetry regarding usage.\nThis information is used to shape Next.js\' roadmap and prioritize features.\nYou can learn more, including how to opt-out if you\'d not like to participate in this anonymous program, by visiting the following URL:\nhttps://nextjs.org/telemetry\n\n ▲ Next.js 14.2.13\n - Environments: .env\n - Experiments (use with caution):\n · scrollRestoration\n\n Creating an optimized production build ...\n\u001b[33m\n ➡ [tamagui] built config and components (914ms):\u001b[0m\n\u001b[2m\n Config ./.tamagui/tamagui.config.cjs\n Components ./.tamagui/tamagui-components.config.cjs\n ./.tamagui/myui-components.config.cjs\n \u001b[0m\n', 'Failed to compile.\n\n./app/layout.tsx\nError: \n \u001b[31mx\u001b[0m You\'re importing a component that needs useServerInsertedHTML. It only works in a Client Component but none of its parents are marked with "use client", so they\'re Server Components by default.\n \u001b[31m|\u001b[0m Learn more: https://nextjs.org/docs/getting-started/react-essentials\n \u001b[31m|\u001b[0m \n \u001b[31m|\u001b[0m \n ,-[\u001b[36;1;4m/home/runner/work/tamagui-test/tamagui-test/apps/next/app/layout.tsx\u001b[0m:6:1]\n \u001b[2m 6\u001b[0m | import { Metadata } from \'next\'\n \u001b[2m 7\u001b[0m | import { ReactNode } from \'react\'\n \u001b[2m 8\u001b[0m | import { AppRegistry } from \'react-native\'\n \u001b[2m 9\u001b[0m | import { useServerInsertedHTML } from \'next/navigation\'\n : \u001b[31;1m ^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[2m10\u001b[0m | import { NextTamaguiProvider } from \'./NextTamaguiProvider\'\n \u001b[2m11\u001b[0m | import { config } from \'@my/ui\'\n `----\n\nImport trace for requested module:\n./app/layout.tsx\n\n\n> Build failed because of webpack errors\n' ], pid: 1937, stdout: 'built @my/config in 35 ms\nbuilt @my/ui in 272 ms\nDone in 1s 479ms\n\n\nWelcome to Tamagui!\n\nYou can update this monorepo to the latest Tamagui release just by running:\n\nyarn upgrade:tamagui\n\nWe\'ve set up a few things for you.\n\nSee the "excludeReactNativeWebExports" setting in next.config.js, which omits these\nfrom the bundle: Switch, ProgressBar Picker, CheckBox, Touchable. To save more,\nyou can add ones you don\'t need like: AnimatedFlatList, FlatList, SectionList,\nVi
|
Run tests
Process completed with exit code 1.
|
Loading