元数据库如何在本地主机上运行反应前端?

时间:2021-07-05 21:36:49

标签: reactjs webpack yarnpkg metabase

我正在尝试运行元数据库的 React 前端,以便我可以对其进行自定义。 在开发者指南中:https://www.metabase.com/docs/latest/developers-guide.html

它说先执行 lein run 然后 yarn build-hot

但这不会像日志声称的那样在 localhost:8080 上显示应用程序前端:

 yarn build-hot
yarn run v1.22.10
$ yarn && NODE_ENV=hot webpack-dev-server --progress
$ echo $npm_execpath | grep -q yarn || echo '\033[0;33mSorry, npm is not supported. Please use Yarn (https://yarnpkg.com/).\033[0m'
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
(node:2815) [DEP0131] DeprecationWarning: The legacy HTTP parser is deprecated.
 10% building modules 4/4 modules 0 active
Project is running at http://localhost:8080/
webpack output is served from http://localhost:8080/app/dist/
Content not from webpack is served from frontend

我只是在本地主机上得到这个 enter image description here

通常为了在本地主机上运行 React 应用程序,我们将 localhost 8080 作为代理添加到 package.json 并且它只是 npm install 和 npm start(或 yarn)。 但这似乎不适用于元数据库的反应文件的结构方式。

0 个答案:

没有答案