Downloaded the element-ui source code, want to link to the project, but reported a lot can not find dependencies

after downloading element-ui "s source code, run dist, use npm link to other projects, but the project startup report many dependencies can not be found, these files exist, whether it has anything to do with his packaging method webpack

clipboard.png

clipboard.png

Mar.03,2021

post-link compilation path problem, modify the code, build a release of the development pattern

  1. first of all, build/config.js, changes its generated path from element-ui//lib/locale to .. / lib/locale in development compilation mode.
  2. .babelrc in development and compilation mode, util's alias "element-ui/src": "element-ui/lib" is changed to . / lib
Menu