silverwolf-x's picture
download
raw
6.11 kB
x You're importing a module that depends on `useState` into a React Server Component module. This API is only available in Client Components. To fix, mark the file (or its parent) with the `"use
| client"` directive.
| Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
|
|
,-[input.js:1:1]
1 | import { useState } from 'react'
: ^^^^^^^^
`----
x You're importing a module that depends on `createContext` into a React Server Component module. This API is only available in Client Components. To fix, mark the file (or its parent) with the
| `"use client"` directive.
| Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
|
|
,-[input.js:3:1]
2 |
3 | import { createContext } from 'react'
: ^^^^^^^^^^^^^
`----
x You're importing a module that depends on `useEffect` into a React Server Component module. This API is only available in Client Components. To fix, mark the file (or its parent) with the `"use
| client"` directive.
| Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
|
|
,-[input.js:5:1]
4 |
5 | import { useEffect, useImperativeHandle } from 'react'
: ^^^^^^^^^
`----
x You're importing a module that depends on `useImperativeHandle` into a React Server Component module. This API is only available in Client Components. To fix, mark the file (or its parent) with
| the `"use client"` directive.
| Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
|
|
,-[input.js:5:1]
4 |
5 | import { useEffect, useImperativeHandle } from 'react'
: ^^^^^^^^^^^^^^^^^^^
`----
x You’re importing a class component. 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/app/building-your-application/rendering/client-components
|
|
,-[input.js:8:1]
7 | import {
8 | Component,
: ^^^^^^^^^
9 | createFactory,
`----
x You're importing a module that depends on `createFactory` into a React Server Component module. This API is only available in Client Components. To fix, mark the file (or its parent) with the
| `"use client"` directive.
| Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
|
|
,-[input.js:9:1]
8 | Component,
9 | createFactory,
: ^^^^^^^^^^^^^
10 | PureComponent,
`----
x You're importing a module that depends on `PureComponent` into a React Server Component module. This API is only available in Client Components. To fix, mark the file (or its parent) with the
| `"use client"` directive.
| Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
|
|
,-[input.js:10:1]
9 | createFactory,
10 | PureComponent,
: ^^^^^^^^^^^^^
11 | useDeferredValue,
`----
x You're importing a module that depends on `useDeferredValue` into a React Server Component module. This API is only available in Client Components. To fix, mark the file (or its parent) with the
| `"use client"` directive.
| Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
|
|
,-[input.js:11:1]
10 | PureComponent,
11 | useDeferredValue,
: ^^^^^^^^^^^^^^^^
12 | useInsertionEffect,
`----
x You're importing a module that depends on `useInsertionEffect` into a React Server Component module. This API is only available in Client Components. To fix, mark the file (or its parent) with
| the `"use client"` directive.
| Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
|
|
,-[input.js:12:1]
11 | useDeferredValue,
12 | useInsertionEffect,
: ^^^^^^^^^^^^^^^^^^
13 | useLayoutEffect,
`----
x You're importing a module that depends on `useLayoutEffect` into a React Server Component module. This API is only available in Client Components. To fix, mark the file (or its parent) with the
| `"use client"` directive.
| Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
|
|
,-[input.js:13:1]
12 | useInsertionEffect,
13 | useLayoutEffect,
: ^^^^^^^^^^^^^^^
14 | useReducer,
`----
x You're importing a module that depends on `useReducer` into a React Server Component module. This API is only available in Client Components. To fix, mark the file (or its parent) with the `"use
| client"` directive.
| Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
|
|
,-[input.js:14:1]
13 | useLayoutEffect,
14 | useReducer,
: ^^^^^^^^^^
15 | useRef,
`----
x You're importing a module that depends on `useRef` into a React Server Component module. This API is only available in Client Components. To fix, mark the file (or its parent) with the `"use
| client"` directive.
| Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
|
|
,-[input.js:15:1]
14 | useReducer,
15 | useRef,
: ^^^^^^
16 | useSyncExternalStore,
`----
x You're importing a module that depends on `useSyncExternalStore` into a React Server Component module. This API is only available in Client Components. To fix, mark the file (or its parent) with
| the `"use client"` directive.
| Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
|
|
,-[input.js:16:1]
15 | useRef,
16 | useSyncExternalStore,
: ^^^^^^^^^^^^^^^^^^^^
17 | } from 'react'
`----
x You're importing a module that depends on `experimental_useOptimistic` into a React Server Component module. This API is only available in Client Components. To fix, mark the file (or its
| parent) with the `"use client"` directive.
| Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
|
|
,-[input.js:19:1]
18 |
19 | import { experimental_useOptimistic as useOptimistic } from 'react'
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
`----

Xet Storage Details

Size:
6.11 kB
·
Xet hash:
d0eb82314f8ae60df6400f3a083dcb4ec14f89af402ddf2e3e5ab55dd967960f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.