arco-design / arco-cli

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

arco init project ---> select "组件" ---> npm run dev ---> ERROR in ./generated-stories-entry.js Module not found: Error: Can't resolve './stories' #29

Closed githubhwen closed 2 years ago

githubhwen commented 2 years ago

Basic Info

Extra info

node v16.14.2 arco-cli 1.27.0

What is expected?

Program runs without error

Steps to reproduce

arco init project ---> react ---> select "组件" ---> npm run dev ---> ERROR in ./generated-stories-entry.js Module not found: Error: Can't resolve './stories' ERROR in ./generated-stories-entry.js Module not found: Error: Can't resolve './stories' in '/Desktop/project/doc' @ ./generated-stories-entry.js 7:37-123 @ multi ./node_modules/@storybook/core-client/dist/esm/globals/polyfills.js ./node_modules/@storybook/core-client/dist/esm/globals/globals.js (webpack)-hot-middleware/client.js?reload=true&quiet=false&noInfo=undefined ./storybook-init-framework-entry.js ./node_modules/@storybook/react/dist/esm/client/preview/config-generated-config-entry.js ./.storybook/preview.js-generated-config-entry.js ./generated-stories-entry.js

MisterLuffy commented 2 years ago

Is there a directory named stories in your project?It's the entry of storybook.