Comments (16)
@trentprynn FYI
node -v
v14.17.0
yarn -v
1.22.15
from next-swagger-doc.
@jellydn I'm pretty sure it's not actually a problem with your library, I think it's an issue with either next@12 or swagger-ui-react
I removed the dependency on next-swagger-doc and can recreate the same problem (repro's must be viewed using chrome)
[email protected] + [email protected] => WORKING
[email protected] + [email protected] => BROKEN
I'll go ahead and open up an issue with next in a minute
from next-swagger-doc.
Close with https://github.com/jellydn/next-swagger-doc/releases/tag/v0.1.11
from next-swagger-doc.
Thanks @trentprynn I will look into this tonight.
from next-swagger-doc.
Hi @trentprynn
I will close this issue as it's not related to the next-swagger-doc package.
Here is my testing with next@12. Thanks.
mkdir test
npx degit jellydn/next-swagger-doc/example
yarn && yarn build && yarn start
from next-swagger-doc.
@jellydn thanks for looking into this and upgrading the sample project to next12! The issue definitely seem like something on my side. Can I ask what node version you're using?
from next-swagger-doc.
@jellydn I believe this is actually is an issue, please take a look at the following stackblitz reproductions (they must be opened using chrome) and observe that when using next@12 + next-swagger-doc it has the 'isarray' import error I originally mentioned
[email protected] + [email protected] => WORKING
[email protected] + [email protected] => BROKEN
from next-swagger-doc.
also it seems like all your vercel builds are failing for your demo site deployments to vercel after your upgrade to next@12 and I would bet it's because of the same problem
from next-swagger-doc.
Thanks @trentprynn
Quite weird as it's working when I tested with example app.
mkdir test
npx degit jellydn/next-swagger-doc/example
yarn && yarn build && yarn start
You're correct. I saw the same error on Vercel build. Let me take a look.
from next-swagger-doc.
FYI
[4/4] Building fresh packages...
--
10:58:22.314 | Done in 34.95s.
10:58:22.339 | Detected Next.js version: 12.0.1
10:58:22.341 | Running "yarn run build"
10:58:22.684 | yarn run v1.22.17
10:58:22.744 | $ next build
10:58:23.588 | info - Checking validity of types...
10:58:28.020 | info - Creating an optimized production build...
10:58:52.447 | Failed to compile.
10:58:52.448 | ./node_modules/swagger-ui-react/swagger-ui.js
10:58:52.449 | Module not found: Can't resolve 'isarray' in '/vercel/path0/example/node_modules/swagger-ui-react'
10:58:52.449 | Import trace for requested module:
10:58:52.449 | ./node_modules/swagger-ui-react/index.j
from next-swagger-doc.
Great. Thanks.
from next-swagger-doc.
@jellydn I went ahead and opened this issue vercel/next.js#30669
you might want to re-open this issue so users are not confused by this error if they try to use this library (which ends up using swagger-ui-react) and next@>=12
from next-swagger-doc.
Also, as a temporary fix, if you manually add isarray to your project's dependencies the error does not occur
from next-swagger-doc.
Agreed. Thanks.
from next-swagger-doc.
@jellydn I just tested and this is still an issue, do you think you could make isarray
a next-swagger-doc
dependency so end users don't have to add to add the dependency to their project?
from next-swagger-doc.
Ok, no problem. Thanks. I will do this today.
from next-swagger-doc.
Related Issues (20)
- 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 with yarn build with Next 14 HOT 3
- Error on build - Next.js 14 - TypeError: Class extends value undefined is not a constructor or null HOT 5
- Module not found: Can't resolve '#apg-lite' HOT 1
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.