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
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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