Uncaught TypeError: Object(...) is not a function

6-22 13:36:19 INFO metabase.task :: Initializing task SyncDatabases :calendar:
06-22 13:36:19 INFO metabase.task :: Initializing task CheckForNewVersions :calendar:
06-22 13:36:19 INFO metabase.task :: Initializing task SendAnonymousUsageStats :calendar:
06-22 13:36:19 INFO metabase.task :: Initializing task SendAbandomentEmails :calendar:
06-22 13:36:19 INFO metabase.task :: Initializing task SendPulses :calendar:
06-22 13:36:19 INFO metabase.task :: Initializing task SendFollowUpEmails :calendar:
06-22 13:36:19 INFO metabase.task :: Initializing task TaskHistoryCleanup :calendar:
06-22 13:36:19 INFO metabase.core :: Metabase初始化完成
06-22 13:36:30 INFO middleware.exceptions :: Request canceled before finishing.

vendor.bundle.js?4d087e67dea401e0666c:39 Uncaught TypeError: Object(...) is not a function
at Object. (vendor.bundle.js?4d087e67dea401e0666c:39)
at Object. (vendor.bundle.js?4d087e67dea401e0666c:39)
at i (vendor.bundle.js?4d087e67dea401e0666c:1)
at Object. (app-main.bundle.js?4d087e67dea401e0666c:5)
at i (vendor.bundle.js?4d087e67dea401e0666c:1)
at Object. (app-main.bundle.js?4d087e67dea401e0666c:5)
at i (vendor.bundle.js?4d087e67dea401e0666c:1)
at window.webpackJsonp (vendor.bundle.js?4d087e67dea401e0666c:1)
at app-main.bundle.js?4d087e67dea401e0666c:5
(anonymous) @ vendor.bundle.js?4d087e67dea401e0666c:39
(anonymous) @ vendor.bundle.js?4d087e67dea401e0666c:39
i @ vendor.bundle.js?4d087e67dea401e0666c:1
(anonymous) @ app-main.bundle.js?4d087e67dea401e0666c:5
i @ vendor.bundle.js?4d087e67dea401e0666c:1
(anonymous) @ app-main.bundle.js?4d087e67dea401e0666c:5
i @ vendor.bundle.js?4d087e67dea401e0666c:1
window.webpackJsonp @ vendor.bundle.js?4d087e67dea401e0666c:1
(anonymous) @ app-main.bundle.js?4d087e67dea401e0666c:5

Hi @liwenhao
You are providing very little information.
Which version of Metabase?
When does this error happen?

1 Like

i build the jar and the version of the source code is 0.29
then i run the jar and open the setup url,but it appear blank

Okay, not sure why you’re using such an old version.
Can you even run the original release? https://downloads.metabase.com/v0.29.0/metabase.jar
If yes, then there’s something wrong with your build. If no, then there’s something wrong with your environment.
Anyways, you are recommended to follow the latest release otherwise you have to figure things out yourself.

sorry,the version of the source code is v0.32.9
myabe there are something wrong with the build,but i do not know how to find it

the result of the build is sucess

Yes, the build might be a success, but if you’ve changed the code, then you might have made a mistake, which means the application breaks.
Can you run the official release of 0.32.9? https://downloads.metabase.com/v0.32.9/metabase.jar
If yes, then there’s something wrong with your build. If no, then there’s something wrong with your environment.

i did not change the code
the official jar is ok

can anyone else help me?

If you don’t change anything, then why are you building your own version?
Have you tried to setup a totally new, clean environment?

And can you please write a comment to your earlier thread, since it sounds like you’re now able to build - what was the problem?
Exception in thread "main" java.lang.AbstractMethodError

Can you forward to someone who know the code better,and i have give you the call stack.I do not modify the code because i must first check the official code is ok

vendor.bundle.js?4d087e67dea401e0666c:39 Uncaught TypeError: Object(…) is not a function
at Object. (vendor.bundle.js?4d087e67dea401e0666c:39)
at Object. (vendor.bundle.js?4d087e67dea401e0666c:39)
at i (vendor.bundle.js?4d087e67dea401e0666c:1)
at Object. (app-main.bundle.js?4d087e67dea401e0666c:5)
at i (vendor.bundle.js?4d087e67dea401e0666c:1)
at Object. (app-main.bundle.js?4d087e67dea401e0666c:5)
at i (vendor.bundle.js?4d087e67dea401e0666c:1)
at window.webpackJsonp (vendor.bundle.js?4d087e67dea401e0666c:1)
at app-main.bundle.js?4d087e67dea401e0666c:5
(anonymous) @ vendor.bundle.js?4d087e67dea401e0666c:39
(anonymous) @ vendor.bundle.js?4d087e67dea401e0666c:39
i @ vendor.bundle.js?4d087e67dea401e0666c:1
(anonymous) @ app-main.bundle.js?4d087e67dea401e0666c:5
i @ vendor.bundle.js?4d087e67dea401e0666c:1
(anonymous) @ app-main.bundle.js?4d087e67dea401e0666c:5
i @ vendor.bundle.js?4d087e67dea401e0666c:1
window.webpackJsonp @ vendor.bundle.js?4d087e67dea401e0666c:1
(anonymous) @ app-main.bundle.js?4d087e67dea401e0666c:5

@liwenhao
Do a search, and you’ll see that this error has not been reported before.
That’s a minified call stack, so difficult to see where the problem is.
There’s hundreds of people who are compiling Metabase, so instead of trying to figure out what’s going wrong with your environment, go and install a clean operating system (fully update) with OracleJDK, Node, Yarn, Leining.
If something fails from there, then post your entire .bash_history, so it can be reproduced.

Have a look at another thread, which is also failing to build until following the exact prerequisites in a proper environment: Logon authentication And Support for multiple users
Maybe you’re even speaking the same language, so you could try sending that person a direct message.

can you tell me which version of node and yarn can i use

This is one of my computers. And make a new clean git clone, so there’s nothing contaminated.

$ lsb_release -d
Description:	Ubuntu 19.04
$ java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
$ lein --version
Leiningen 2.9.1 on Java 1.8.0_201 Java HotSpot(TM) 64-Bit Server VM
$ nodejs --version
v10.16.0
$ yarn --version
1.16.0

can you tell me the version of styled-components?

it did not define in package.json

Running ‘webpack’ with NODE_ENV=production assemble and minify frontend assets…
ModuleNotFoundError: Module not found: Error: Can’t resolve ‘styled-components’ in ‘/dataDisk/li/temp/metabase-0.32.9/frontend/src/metabase’
at factoryCallback (/dataDisk/li/temp/metabase-0.32.9/node_modules/webpack/lib/Compilation.js:282:40)

@liwenhao
Metabase uses styled-components version 3.2.6 - see the file ./yarn.lock
If you don’t have that module, then your build environment is not good.