Build Error


#1

When I run ./bin/build command, I get the following error, how to fix it ?

ERROR in ./app-public.js
Module build failed: AssertionError [ERR_ASSERTION]: ImportDeclaration should appear when the mode is ES6 and in the module context.
at Referencer.ImportDeclaration (/source/referencer.js:548:9)

metabase-0.30.2/frontend/src/metabase/reference/segments/SegmentRevisionsContainer.jsx
4:10 warning ‘connect’ is defined but never used no-unused-vars
21:7 warning ‘mapStateToProps’ is assigned a value but never used no-unused-vars
29:7 warning ‘mapDispatchToProps’ is assigned a value but never used no-unused-vars
36:10 error ‘propTypes’ is not defined no-undef

:heavy_multiplication_x: 4 problems (1 error, 3 warnings)

@ ./routes.jsx 185:33-101
@ ./app-main.js


#2

Hi all, I have the same issue. Please, someone can help! Thanks!