swagger-api / swagger-api/swagger-ui

Next.js 12 issue with 'isarray' module

Open
#7,650 0 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
29k
Forks
9.3k
Avg merge
2d 23h
Merged PRs (30d)
25

Description

Q&A (please complete the following information)
  • OS: Windows 10
  • Browser: Firefox
  • Method of installation: npm
  • Swagger-UI version: 4.1.0
Content & configuration

For some reason when i install swagger-ui-react in Next.js 12 it can't find the isarray module. Manually installing isarray will fix the issue. It works just fine with Next.js 11 and regular create-react-app projects. Any idea why this is the case?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the swagger-ui-react installation in a Next.js 12 project on Windows 10, then compare it with Next.js 11 and a regular create-react-app project. The issue is resolved when the package works in Next.js 12 without manually installing isarray.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, next.js, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.