百度SAN框架初步总结

webpack4 + san 快速构建一个项目:https://www.jianshu.com/p/efc955b2b38b
百度前端项目总网址:https://efe.baidu.com/
SAN网址:https://baidu.github.io/san/tutorial/component/
san-ui组件库:https://ecomfe.github.io/san-xui/#comp=xui-button
常见错误处理:
错误一:运行npm run dev,报错Cannot read property 'properties' of undefined

原因:

    这是因为webpack版本和webpack-cli不兼容导致的

解决办法:

    通过命令升级 webpack-cli 为3.1.1版本就可以解决这个问题了

    npm i [email protected] --save

 


错误二:运行yarn start 报错node版本不支持
运行:

yarn config set ignore-engines true

你可能感兴趣的:(web大前端)