compile failed when update redoc version
Nobody has claimed this yet.
- 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
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
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