Redocly / Redocly/redoc

compile failed when update redoc version

Open
#2,641 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
TypeScript
Stars
25.9k
Forks
2.4k
Avg merge
13h 10m
Merged PRs (30d)
4

Description

When I update redoc version from 2.1.1 to 2.2.0
I got an error when compile

error in ./node_modules/redoc/bundles/redoc.browser.lib.js

Module parse failed: Unexpected token (41:47711)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| margin: 30px 0 20px 0;
| color: ${e=>e.color};

`;class ae extends e.PureComponent{render(){return e.createElement("div",{style:{textAlign:"center"}},e.createElement(se,{color:this.props.color},"Loading ..."),e.createElement(ie,{color:this.props.color}))}}var le=require

How can i deal with this?

Looking forward to your reply, thank you

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

Reproduce the compile failure after changing redoc from 2.1.1 to 2.2.0, starting with node_modules/redoc/bundles/redoc.browser.lib.js and the webpack loader guidance in the error. Inspect the consuming webpack configuration and verify that the project compiles successfully with redoc 2.2.0; the issue is done when the parse error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
webpack
Domain
build-system
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.