arco-design / arco-cli

CLI tool for Arco Design
https://arco.design/docs/material/guide
MIT License
203 stars 76 forks source link

创建vue 组件库物料项目安装依赖后运行报错 #41

Closed yanbowe closed 2 years ago

yanbowe commented 2 years ago

Describe the bug 新建vue 组件库物料项目安装后报如下错误 DeprecationWarning: Default PostCSS plugins are deprecated. When switching to '@storybook/addon-postcss', you will need to add your own plugins, such as 'postcss-flexbugs-fixes' and 'autoprefixer'.

See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-default-postcss-plugins for details. (Use node --trace-deprecation ... to show where the warning was created) 0% compilingERR! TypeError: Cannot read properties of undefined (reading 'get')

To Reproduce Steps to reproduce the behavior:

  1. arco init demo
  2. 选择vue
  3. 选择组件库, 输入npm包名,输入物料标题,输入描述,输入npm版本号0.1.0,选择关键词
  4. 等待下载依赖
  5. yarn install 后yarn dev报错

Expected behavior image

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

MisterLuffy commented 2 years ago

可参考 此方案 解决,或重新创建物料项目(项目模板)已更新。