GitHub材料ui文档中没有可用的问题部分:(,所以我试着在这里询问。BTW安装在容器外似乎很奇怪:/尝试安装时,出现错误:
error - ./pages/_app.js
mui-docs | Error: Cannot find module 'babel-plugin-macros'
mui-docs | Require stack:
mui-docs | - /home/node/material-ui-docs/node_modules/next/dist/compiled/babel/bundle.js
mui-docs | - /home/node/material-ui-docs/node_modules/next/dist/compiled/babel/code-frame.js
mui-docs | - /home/node/material-ui-docs/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseScss.js
这是docker-compose.yml
version: "3.5"
services:
svcMuiDocs:
image: "node:17-slim"
restart: always
container_name: "mui-docs"
#user: "node"
working_dir: /home/node/material-ui-docs
environment:
- NODE_ENV=production
volumes:
- "./:/home/node/material-ui-docs:rw"
ports:
- "8012:8012"
entrypoint: ["/bin/sh","-c"]
command:
- |
yarn && yarn docs:dev --port=8012
networks:
- default
networks:
default:
external:
name: svcBackend
站点不会启动
有人能帮忙吗?
作为。
好吧,只是盲射。。。将docker-compose.yml中的几个单词替换为:
version: "3.5"
services:
svcMuiDocs:
image: "node:17-slim"
restart: always
container_name: "mui-docs"
#user: "node"
working_dir: /home/node/material-ui-docs
environment:
- NODE_ENV=development
volumes:
- "./:/home/node/material-ui-docs:rw"
ports:
- "8012:8012"
entrypoint: ["/bin/sh","-c"]
command:
- |
yarn --ignore-platform && yarn docs:dev --port=8012
networks:
- default
networks:
default:
external:
name: svcBackend
NODE_ENV=开发
添加--忽略纱线的平台
和中提琴:(
作为。