November 30, 2018

create-react-app项目,mobx使用装饰器报错

create-react-app项目中,在 mobx 中直接使用装饰器语法会有如下报错。Support for the experimental syntax 'decorators-legacy' isn't currently enabled按照Mobx文档中的方法,使用 react-app-rewired,安装react-app-rewire-mobx包,在config-overrid...
October 18, 2018

yarn 报错 Something is already running on port 3000. Probably:

yarn start 后,没有 CTRL+C 结束进程,而直接关掉终端导致进程无法关闭时,再次 start 会报出端口占用的错误:Something is already running on port 3000. Probably: node .../start.js(pid 00000) in ... Would you like to run the app on another p...
September 12, 2018

AntDesignVue定制主题的坑

在定制主题的时候,参照Ant Design Vue 文档中 theme 属性的方案配置,配合使用 less-loader 的 modifyVars 的时候报错,爬了很久的坑。在 webpack.base.conf.js 的 rules中添加{ test: /\.less$/, loader: 'less-loader', options: { java...
September 2, 2018

docker run ipv4报错

docker run 时报错WARNING: IPv4 forwarding is disabled. Networking will not work.的解决办法:$ vim /etc/sysctl.conf添加net.ipv4.ip_forward=1,保存退出,重启 network 服务:$ systemctl restart network运行命令$ sysctl net.ipv4....