Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn build报错 #5

Open
fengyunzaidushi opened this issue Oct 19, 2024 · 0 comments
Open

yarn build报错 #5

fengyunzaidushi opened this issue Oct 19, 2024 · 0 comments

Comments

@fengyunzaidushi
Copy link
Contributor


✔ Generated Prisma Client (v5.21.1) to .\node_modules\@prisma\client in 67ms

Start by importing your Prisma Client (See: http://pris.ly/d/importing-client)

Tip: Want real-time updates to your database without manual polling? Discover how with Pulse: https://pris.ly/tip-0-pulse

  ▲ Next.js 14.2.15
  - Environments: .env.production, .env
  - Experiments (use with caution):
    · swcPlugins

   Creating an optimized production build ...
 ✓ Compiled successfully

./app/[lang]/(public)/user-case/page.tsx
266:115  Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.  jsx-a11y/alt-text
284:115  Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.  jsx-a11y/alt-text
302:115  Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.  jsx-a11y/alt-text
320:115  Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.  jsx-a11y/alt-text

./components/before-after/index.tsx
57:6  Warning: React Hook useEffect has a missing dependency: 'refContainer'. Either include it or remove the dependency array. Mutable values like 'imagesLoadedRef.current' aren't valid dependencies because mutating them doesn't re-render the component.  react-hooks/exhaustive-deps
63:6  Warning: React Hook useEffect has a missing dependency: 'onReady'. Either include it or remove the dependency array. If 'onReady' changes too often, find the parent component that defines it and wrap that definition in useCallback.  react-hooks/exhaustive-deps
88:6  Warning: React Hook useEffect has missing dependencies: 'firstImageRef', 'onImageLoad', 'onMouseUpHandler', and 'updateContainerWidth'. Either include them or remove the dependency array. If 'updateContainerWidth' changes too often, find the parent component that defines it and wrap that definition in useCallback.  react-hooks/exhaustive-deps
100:6  Warning: React Hook useEffect has missing dependencies: 'callback' and 'withResizeFeel'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
180:6  Warning: React Hook useEffect has a missing dependency: 'observer'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps

./components/wegic/hero.tsx
75:15  Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.  jsx-a11y/alt-text
88:13  Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.  jsx-a11y/alt-text

info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
   Linting and checking validity of types  ..Failed to compile.

./framework/locale/AppWithTranslation.tsx:20:24
Type error: Type 'import("E:/share/github/010/ai-outpainting-com2/ai-outpainting-com/node_modules/@lingui/core/dist/index").I18n' is not assignable to type 'import("E:/share/github/010/ai-outpainting-com2/ai-outpainting-com/node_modules/@lingui/react/node_modules/@lingui/core/dist/index").I18n'.
re/dist/index").I18n' is not assignable to type 'import("E:/share/github/010/ai-outpainting-com2/ai-outpaintre/dist/index").I18n' is not assignable to type 'import("E:/share/github/010/ai-outpainting-com2/ai-outpaintre/dist/index").I18n' is not assignable to type 'import("E:/share/github/010/ai-outpainting-com2/ai-outpainting-com/node_modules/@lingui/react/node_modules/@lingui/core/dist/index").I18n'.
re/dist/index").I18n' is not assignable to type 'import("E:/share/github/010/ai-outpainting-com2/ai-outpaintre/dist/index").I18n' is not assignable to type 'import("E:/share/github/010/ai-outpainting-com2/ai-outpaintre/dist/index").I18n' is not assignable to type 'import("E:/share/github/010/ai-outpainting-com2/ai-outpaintre/dist/index").I18n' is not assignable to type 'import("E:/share/github/010/ai-outpainting-com2/ai-outpainting-com/node_modules/@lingui/react/node_modules/@lingui/core/dist/index").I18n'.
  Types have separate declarations of a private property '_locale'.

  18 |   useLoadTranslation(i18nPropsNamespace, locale)
  19 |
> 20 |   return <I18nProvider i18n={globalI18n}>{children}</I18nProvider>
     |                        ^
  21 | }
  22 |
  23 | export default AppWithTranslation
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant