Redocly / Redocly/openapi-sampler

node_modules/openapi-sampler/src/traverse.js Unexpected token(95:8). You may need an appropriate loader to handle this file type.

Open
#143 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
228
Forks
52
Avg merge
48m
Merged PRs (30d)
6

Description

I'm attempting to use Redoc however openapi sampler is unable to recognize the object spread operator. Babel is set up in my project and works elsewhere. Stack trace:
.//openapi-sampler/src/openapi-sampler.js 1:0-50
./
/redoc/bundles/redoc.browser.lib.js

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 with node_modules/openapi-sampler/src/traverse.js at line 95 and trace how it is included through src/openapi-sampler.js into the Redoc browser bundle. Reproduce the build using the reported Redoc setup and verify that the object spread syntax no longer causes the loader parse error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.