garris / BackstopJS

Catch CSS curve balls.
http://backstopjs.org
MIT License
6.67k stars 605 forks source link

rebuild the React App HTML report #1434

Open SlikeIv opened 1 year ago

SlikeIv commented 1 year ago

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