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