garris / garris/BackstopJS

rebuild the React App HTML report

Open
#1,434 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

Hi all! I'm trying to rebuild the React App report page (for customization), but an error occurs when running the command "npm run build-compare" . Tell me how you can solve the problem? Thank you!

root# cd /usr/local/lib/node_modules/backstopjs
root# npm run build-compare

> backstopjs@6.1.1 build-compare
> cp ./node_modules/diverged/src/diverged.js ./compare/output/ && cp ./node_modules/diff/dist/diff.js ./compare/output/ && webpack --config ./compare/webpack.config.js && npm run lint

assets by status 324 bytes [cached] 1 asset
./compare/src/index.js 279 bytes [built] [code generated] [1 error]

ERROR in ./compare/src/index.js 9:2
Module parse failed: Unexpected token (9:2)
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

|
| ReactDOM.render(
> <Provider store={store}>
| <App />
| </Provider>,

![image](https://user-images.githubusercontent.com/96535864/184823360-83c4453c-de29-4542-8e30-3c1354e523ca.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.