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!


#3

Caused by: java.lang.ClassNotFoundException: org.apache.http.conn.HttpClientConnectionManager
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at clojure.lang.DynamicClassLoader.findClass(DynamicClassLoader.java:69)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at clojure.lang.DynamicClassLoader.loadClass(DynamicClassLoader.java:77)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at clojure.lang.RT.classForName(RT.java:2207)
at clojure.lang.RT.classForNameNonLoading(RT.java:2220)
at clj_http.conn_mgr$eval21070$loading__6706__auto____21071.invoke(conn_mgr.clj:1)
at clj_http.conn_mgr$eval21070.invokeStatic(conn_mgr.clj:1)
at clj_http.conn_mgr$eval21070.invoke(conn_mgr.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:7176)
at clojure.lang.Compiler.eval(Compiler.java:7165)
at clojure.lang.Compiler.load(Compiler.java:7635)
… 151 more
Error encountered performing task ‘ring’ with profile(s): ‘base,system,user,provided,dev,ring’
Subprocess failed


#4

Hi @hitendrab
Are you having difficulties compiling or ?
Have you followed the guide? https://www.metabase.com/docs/latest/developers-guide.html