arco-design-pro-vue
arco-design-pro-vue copied to clipboard
arco init 报错
PS D:\VueProjects> arco init arco-admin
___ ____ _
/ | ______________ / __ \___ _____(_)___ _____
/ /| | / ___/ ___/ __ \/ / / / _ \/ ___/ / __ `/ __ \
/ ___ |/ / / /__/ /_/ / /_/ / __(__ ) / /_/ / / / /
/_/ |_/_/ \___/\____/_____/\___/____/_/\__, /_/ /_/
/____/
v1.27.5
C:\Users\zzz\AppData\Roaming\npm\node_modules\arco-cli\node_modules\arco-cli-dev-utils\lib\getAnswerFromUser.js:145 const { question: { [command]: questions }, } = yield (0, baseConfig_1.getBaseConfig)(); ^
TypeError: Cannot destructure property 'question' of '(intermediate value)' as it is undefined.
at C:\Users\zzz\AppData\Roaming\npm\node_modules\arco-cli\node_modules\arco-cli-dev-utils\lib\getAnswerFromUser.js:145:27
at Generator.next (
Node.js v22.14.0
下载realease版本,解压 然后看下package.json文件 执行 yarn run gen:vite , 会产生 arco-design-pro-vite 文件夹,进入文件夹 执行 yarn install 执行 yarn run dev, 如果报错,就按下面改
估计你得改几个地方
.prettierrc.js module.exports = { tabWidth: 2, semi: true, printWidth: 80, singleQuote: true, quoteProps: 'consistent', htmlWhitespaceSensitivity: 'strict', vueIndentScriptAndStyle: true, endOfLine: 'auto', -- 增加这行 };
tsconfig.json { "compilerOptions": { "target": "ES2020", "module": "ES2020", "moduleResolution": "node", "strict": false, --这里改成false "jsx": "preserve", "sourceMap": true, "resolveJsonModule": true, "esModuleInterop": true, "baseUrl": ".", "paths": { "@/": ["src/"] }, "lib": ["es2020", "dom"], "skipLibCheck": true, "noImplicitAny": false --增加这行 }, "include": ["src//*", "src//*.vue"], "exclude": ["node_modules"] }
tab-item.vue const props = defineProps({ itemData: { type: Object as PropType<TagProps>, default() { return null; --这里改成null }, },
chain-item.vue 63行的位置 series: { name: 'total', data: data.value[0], -- 这里改下 103行的位置 series: [ { name: '2001', data: data.value[0], --这里改下 type: 'line', showSymbol: false,
最终 yarn run build 还会报错,你可以看看怎么改 ------------------ 原始邮件 ------------------ 发件人: "arco-design/arco-design-pro-vue" @.>; 发送时间: 2025年2月14日(星期五) 下午4:17 @.>; @.@.>; 主题: Re: [arco-design/arco-design-pro-vue] arco init 报错 (Issue #419)
解决了吗, 我也遇到了
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***> achais left a comment (arco-design/arco-design-pro-vue#419)
解决了吗, 我也遇到了
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
https://github.com/arco-design/arco-cli/issues/101 多谢, 看到另外一个, issues解决了
换腾讯的tdesign吧,字节管生不管养