Comments (3)
Thanks @geberele for the report. I will look this issue sometime this week.
from next-swagger-doc.
Hi @geberele Could you take a try with latest commit? It should work now.
from next-swagger-doc.
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)
- Module not found: Can't resolve '#apg-lite' HOT 1
- Issue with parameters and swcMinify HOT 2
- Example or Docs required to explain how to specify params?
- api doesn't load component on production HOT 9
- Compatibility issues with NodeJS 16+ (version 19.7.0 / 16.19.1) on Windows, Ubuntu, and Heroku
- `Argument of type 'Promise<typeof import("...@types/swagger-ui-react/index")>' is not assignable to parameter of type 'DynamicOptions<{ spec: any; }> | Loader<{ spec: any; }>'. HOT 1
- Authorize using Bearer or OAuth2 HOT 1
- How to manage multiple HTTP methods
- Theme | no light mode support ? HOT 1
- Next13 example project running issue HOT 4
- Swagger annotations $ref as string HOT 1
- Automated doc generation HOT 6
- Where to keep the schema.json file in next.js project?
- Not working on Next 13 HOT 1
- Issue when using different directory such as src HOT 1
- Swagger Specs Never Read HOT 4
- Empty paths in rendered JSON in Production (on Vercel) but not in Dev with NextJS 14 HOT 1
- README Documentation has a missing dependency HOT 2
- Error on build - Next.js 14 - TypeError: Class extends value undefined is not a constructor or null HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-swagger-doc.