Giter Site home page Giter Site logo

Comments (3)

jellydn avatar jellydn commented on June 22, 2024 1

Thanks @geberele for the report. I will look this issue sometime this week.

from next-swagger-doc.

jellydn avatar jellydn commented on June 22, 2024

Hi @geberele Could you take a try with latest commit? It should work now.

from next-swagger-doc.

geberele avatar geberele commented on June 22, 2024

Hi @jellydn, thanks for the fix, I have just tried it and I get this error:

❯ yarn build
yarn run v1.22.19
$ next build
   ▲ Next.js 14.1.0

   Creating an optimized production build ...
 ✓ Compiled successfully

./app/layout.tsx
39:22  Warning: Invalid Tailwind CSS classnames order  tailwindcss/classnames-order

./app/page.tsx
13:12  Warning: Invalid Tailwind CSS classnames order  tailwindcss/classnames-order

./components/main-nav.tsx
17:21  Warning: Classnames 'h-6, w-6' could be replaced by the 'size-6' shorthand!  tailwindcss/enforces-shorthand
28:30  Warning: Invalid Tailwind CSS classnames order  tailwindcss/classnames-order

./components/site-header.tsx
11:13  Warning: Invalid Tailwind CSS classnames order  tailwindcss/classnames-order
27:31  Warning: Classnames 'h-5, w-5' could be replaced by the 'size-5' shorthand!  tailwindcss/enforces-shorthand
42:32  Warning: Classnames 'h-5, w-5' could be replaced by the 'size-5' shorthand!  tailwindcss/enforces-shorthand

./components/tailwind-indicator.tsx
5:10  Warning: Classnames 'h-6, w-6' could be replaced by the 'size-6' shorthand!  tailwindcss/enforces-shorthand

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    
 ✓ Collecting page data    
   Generating static pages (0/6)  [==  ] ⚠ Unsupported metadata themeColor is configured in metadata export in /. Please move it to viewport export instead.
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
 ⚠ Unsupported metadata themeColor is configured in metadata export in /_not-found. Please move it to viewport export instead.
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
 ⚠ Unsupported metadata themeColor is configured in metadata export in /_not-found. Please move it to viewport export instead.
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
 ⚠ Unsupported metadata themeColor is configured in metadata export in /. Please move it to viewport export instead.
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
   Generating static pages (1/6)  [=== ] 
 ⚠ Unsupported metadata themeColor is configured in metadata export in /api-doc. Please move it to viewport export instead.
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
 ⚠ Unsupported metadata themeColor is configured in metadata export in /api-doc. Please move it to viewport export instead.
   Generating static pages (5/6)  [ ===] 
TypeError: Class extends value undefined is not a constructor or null
    at /Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/.next/server/app/api-doc/page.js:6:106416
    at /Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/.next/server/app/api-doc/page.js:12:320585
    at 8499 (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/.next/server/app/api-doc/page.js:12:320601)
    at t (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/.next/server/webpack-runtime.js:1:142)
    at 6884 (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/.next/server/app/api-doc/page.js:1:2653)
    at t (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/.next/server/webpack-runtime.js:1:142)
    at F (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:94693)
    at j (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:93244)
    at rP (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:33905)
    at nN (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:62423)
 ⚠ Unsupported metadata themeColor is configured in metadata export in /api-doc. Please move it to viewport export instead.
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport

Error occurred prerendering page "/api-doc". Read more: https://nextjs.org/docs/messages/prerender-error

TypeError: Class extends value undefined is not a constructor or null
    at /Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/.next/server/app/api-doc/page.js:6:106416
    at /Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/.next/server/app/api-doc/page.js:12:320585
    at 8499 (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/.next/server/app/api-doc/page.js:12:320601)
    at t (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/.next/server/webpack-runtime.js:1:142)
    at 6884 (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/.next/server/app/api-doc/page.js:1:2653)
    at t (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/.next/server/webpack-runtime.js:1:142)
    at F (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:94693)
    at j (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:93244)
    at rP (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:33905)
    at nN (/Users/x/Documents/Projects/next-swagger-doc/examples/next14-app/node_modules/next/dist/compiled/next-server/app-page.ru
 ✓ Generating static pages (6/6) 

> Export encountered errors on following paths:
        /api-doc/page: /api-doc
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

from next-swagger-doc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.