https://pinot.apache.org/ logo
#pinot-dev
Title
# pinot-dev
s

Sharayu Gandhi

04/15/2021, 11:31 PM
Hi there, I am facing issues building pinot after recent commits on Master related to build fix.
Copy code
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.1:npm (npm run-script build) on project pinot-controller: Failed to run task: 'npm run-script build' failed. (error code 2) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] <http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException>
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :pinot-controller
Can someone guide me?
d

Daniel Lavoie

04/15/2021, 11:33 PM
Can you scroll up a bit in your build log, you will get the root cause from the
frontend-maven-plugin
execution
s

Sharayu Gandhi

04/15/2021, 11:51 PM
Thanks, it looked liked I had to manually install some node modules. Thanks for the help!
d

Daniel Lavoie

04/15/2021, 11:55 PM
Can you share more about the error? manually installing modules shouldn’t be a thing
s

Sharayu Gandhi

04/16/2021, 12:01 AM
So, the main issue when I scrolled was
Copy code
ERROR in ./node_modules/@material-ui/utils/index.js
[INFO] Module not found: Error: Can't resolve './chainPropTypes' in '/Users/shgandhi/GSharayu/incubator-pinot/pinot-controller/src/main/resources/node_modules/@material-ui/utils'
[INFO]  @ ./node_modules/@material-ui/utils/index.js 74:45-72
[INFO]  @ ./node_modules/@material-ui/core/esm/styles/colorManipulator.js
[INFO]  @ ./node_modules/@material-ui/core/esm/styles/index.js
[INFO]  @ ./app/theme/index.ts
[INFO]  @ ./app/App.tsx
and bunch of other node modules
I tried with npm install
and got these
Copy code
[WARNING] npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
[WARNING] npm WARN eslint-config-airbnb@18.1.0 requires a peer of eslint-plugin-react-hooks@^2.5.0 || ^1.7.0 but none is installed. You must install peer dependencies yourself.
[WARNING] npm WARN eslint-config-airbnb-base@14.2.1 requires a peer of eslint-plugin-import@^2.22.1 but none is installed. You must install peer dependencies yourself.
[WARNING] npm WARN eslint-config-react-app@5.2.1 requires a peer of babel-eslint@10.x but none is installed. You must install peer dependencies yourself.
[WARNING] npm WARN eslint-config-react-app@5.2.1 requires a peer of eslint-plugin-react-hooks@1.x || 2.x but none is installed. You must install peer dependencies yourself.
[WARNING] npm WARN pinot-controller-ui@1.0.0 No repository field.
[WARNING] npm WARN pinot-controller-ui@1.0.0 No license field.
[ERROR]