A command-line interface tool for creating, developing and managing Arco materials.
npm run init
to set up environment.
lerna run dev
to enter dev mode.
CLI tool for Arco Design
Home Page: https://arco.design/docs/material/guide
License: MIT License
Describe the bug
在开发时需要引入一个插件,我将该插件按照以下方式在 .storybook/main.js
中定义使用:
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
module.exports = {
// ...
webpackFinal: (config) => {
// ...
if (!config.plugins) {
config.plugins = [];
}
config.plugins.push(new MonacoWebpackPlugin());
return config;
},
};
在开发时,该插件正常生效,打包发布后,该插件无效,目前尝试了在 .config/webpack.config.js
中使用该插件,依然无效:
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
const finalConfig = merge(config, {
output: {
// ...
},
plugins: [new MonacoWebpackPlugin()]
});
To Reproduce
Steps to reproduce the behavior:
Expected behavior
插件正常生效
Screenshots
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
环境:M1Mac OS 12.6
执行 npm install -g argo-cli
提示
npm ERR! code 1
npm ERR! path /opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit
npm ERR! command failed
npm ERR! command sh -c -- node lifecycleScripts/preinstall
npm ERR! [nodegit] Running pre-install script
npm ERR! [nodegit] Configuring libssh2.
npm ERR! Error: Command failed: /opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/openssl/openssl
npm ERR! configure: error: cannot find OpenSSL or Libgcrypt,
npm ERR! try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
npm ERR!
npm ERR! at ChildProcess.exithandler (node:child_process:412:12)
npm ERR! at ChildProcess.emit (node:events:513:28)
npm ERR! at maybeClose (node:internal/child_process:1091:16)
npm ERR! at ChildProcess._handle.onexit (node:internal/child_process:302:5) {
npm ERR! code: 1,
npm ERR! killed: false,
npm ERR! signal: null,
npm ERR! cmd: '/opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/openssl/openssl'
npm ERR! }
npm ERR! configure: error: cannot find OpenSSL or Libgcrypt,
npm ERR! try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
npm ERR!
npm ERR! [nodegit] ERROR - Could not finish preinstall
npm ERR! Error: Command failed: /opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/openssl/openssl
npm ERR! configure: error: cannot find OpenSSL or Libgcrypt,
npm ERR! try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
npm ERR!
npm ERR! at ChildProcess.exithandler (node:child_process:412:12)
npm ERR! at ChildProcess.emit (node:events:513:28)
npm ERR! at maybeClose (node:internal/child_process:1091:16)
npm ERR! at ChildProcess._handle.onexit (node:internal/child_process:302:5) {
npm ERR! code: 1,
npm ERR! killed: false,
npm ERR! signal: null,
npm ERR! cmd: '/opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/openssl/openssl'
npm ERR! }
已执行 brew install openssl
和 brew install libgcrypt
Describe the bug
Module parse failed unexpected token
To Reproduce
Steps to reproduce the behavior:
Expected behavior
none
Desktop (please complete the following information):
Additional context
none
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Windows环境下依然报错,麻烦解决windows下的环境
Originally posted by @azhengyongqin in #38 (comment)
program
.command('sync')
.description(locale.CMD_DES_SYNC)
// TODO rewrite this command
// .option('-s, --screenshot [screenshotPath]', locale.TIP_SYNC_SCREENSHOT)
.option('--from-current-package', locale.TIP_SYNC_FROM_CURRENT_PACKAGE)
.option('--fetch', locale.TIP_SYNC_FETCH)
.action(async ({ screenshot, fromCurrentPackage, fetch }) => {
await sync({ screenshot, fetch, paths: fromCurrentPackage ? process.cwd() : undefined });
process.exit(0);
});
Nodejs
node v16.14.2
arco-cli 1.27.0
Program runs without error
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
___ ____ _
/ | ______________ / __ \___ _____(_)___ _____
/ /| | / ___/ ___/ __ \/ / / / _ \/ ___/ / __ `/ __ \
/ ___ |/ / / /__/ /_/ / /_/ / __(__ ) / /_/ / / / /
/_/ |_/_/ \___/\____/_____/\___/____/_/\__, /_/ /_/
/____/
v1.27.5
Error: Socket connection timeout
node version v20.1.0
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
To support an existed storybook site quick convert to standard arco-material-doc-site
as a team site.
Describe alternatives you've considered
No.
Additional context
No.
能正常创建项目
Command Error: npm install @arco-materials/template-core
Describe the bug
style/index.ts 引入其他 css 文件 import 'antd/dist/antd.min.css';
,没有一起打包,如果使用引入整个文件夹的方式import 'antd/dist';
则启动会报以下错误:
ModuleNotFoundError: Module not found: Error: Can't resolve 'antd/dist' in '/Users/lin-mt/WebstormProjects/json-schema-editor-antd/src/style'
at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/webpack/lib/Compilation.js:925:10
at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/webpack/lib/NormalModuleFactory.js:401:22
at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/webpack/lib/NormalModuleFactory.js:130:21
at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/webpack/lib/NormalModuleFactory.js:224:22
at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/neo-async/async.js:2830:7
at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/neo-async/async.js:6877:13
at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/webpack/lib/NormalModuleFactory.js:214:25
at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/enhanced-resolve/lib/Resolver.js:213:14
at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
resolve 'antd/dist' in '/Users/lin-mt/WebstormProjects/json-schema-editor-antd/src/style'
Parsed request is a module
using description file: /Users/lin-mt/WebstormProjects/json-schema-editor-antd/package.json (relative path: ./src/style)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
/Users/lin-mt/WebstormProjects/json-schema-editor-antd/src/style/node_modules doesn't exist or is not a directory
/Users/lin-mt/WebstormProjects/json-schema-editor-antd/src/node_modules doesn't exist or is not a directory
/Users/lin-mt/WebstormProjects/node_modules doesn't exist or is not a directory
/Users/lin-mt/node_modules doesn't exist or is not a directory
To Reproduce
Steps to reproduce the behavior:
style/index.ts
引入 import 'antd/dist/antd.min.css';
npm publish
import 'antd/dist/antd.min.css';
Expected behavior
打包发布后,使用时只需要引入 import '@物料名称/dist/css/index.css';
Screenshots
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
error An unexpected error occurred: "http://bnpm.byted.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz: getaddrinfo ENOTFOUND bnpm.byted.org".
bootstrap correctly
yarn run init
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Error: Command 「npm install」 executed failed:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR! dev eslint@"^8.7.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^5.16.0 || ^6.8.0 || ^7.2.0" from [email protected]
npm ERR! node_modules/eslint-config-airbnb-base
npm ERR! dev eslint-config-airbnb-base@"^14.2.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/wuhu/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
arco-init 项目初始化失败!
Error: spawnSync yarn ENOENT
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
arco文档官网的左侧导航
不同类型的文档太多,希望通过一级菜单划分更加清晰
这个不需要提供 Reproduction Link
我就瞎写了一个。
.gitignore 中有dist,package.json中有build脚本
[email protected]
已经和 ts-loader@~8
存在不兼容的情况,只能将两者的版本写死;less
版本无法平稳升级到 ~4
;arco-scripts
的大版本。Describe the bug
创建组件库项目,构建失败
To Reproduce
F:\vue3>arco init lib-project
___ ____ _
/ | ______________ / __ \___ _____(_)___ _____
/ /| | / ___/ ___/ __ \/ / / / _ \/ ___/ / __ `/ __ \
/ ___ |/ / / /__/ /_/ / /_/ / __(__ ) / /_/ / / / /
/_/ |_/_/ \___/\____/_____/\___/____/_/\__, /_/ /_/
/____/
v1.27.4
? 请选择你希望使用的技术栈 Vue
? 请选择所要创建项目的类型 组件库
? 请输入 NPM 包名 common-components
? 请输入物料标题 公共组件
? 请描述你的物料 公共组件
? 请输入 NPM 包版本号 0.1.0
? 请选择物料的关键词(可多选) 数据展示
正在初始化项目于 F:\vue3\lib-project
√ 获取项目模板成功
√ 模板内容拷贝完成
√ 模板内容适配完成
√ 项目依赖安装完成
‼ 项目构建失败
Command executed failed: npm run build
npm WARN config global --global
, --local
are deprecated. Use --location=global
instead.
npm WARN config global --global
, --local
are deprecated. Use --location=global
instead.
"build.lib.formats" will be ignored because "build.rollupOptions.output" is already an array format
"build.lib.formats" will be ignored because "build.rollupOptions.output" is already an array format
npm WARN config global --global
, --local
are deprecated. Use --location=global
instead.
"build.lib.formats" will be ignored because "build.rollupOptions.output" is already an array format
You must supply options.input to rollup
F:\vue3\lib-project\node_modules\rollup\dist\shared\rollup.js:23039
throw new Error('You must supply options.input to rollup');
^
Error: You must supply options.input to rollup
at Graph.generateModuleGraph (F:\vue3\lib-project\node_modules\rollup\dist\shared\rollup.js:23039:19)
at async Graph.build (F:\vue3\lib-project\node_modules\rollup\dist\shared\rollup.js:22982:9)
at async F:\vue3\lib-project\node_modules\rollup\dist\shared\rollup.js:23680:13
at async catchUnfinishedHookActions (F:\vue3\lib-project\node_modules\rollup\dist\shared\rollup.js:23162:20)
at async rollupInternal (F:\vue3\lib-project\node_modules\rollup\dist\shared\rollup.js:23677:5)
at async doBuild (F:\vue3\lib-project\node_modules\vite\dist\node\chunks\dep-689425f3.js:41710:24)
at async build (F:\vue3\lib-project\node_modules\vite\dist\node\chunks\dep-689425f3.js:41552:16)
Desktop (please complete the following information):
提示:项目构建完成
1、cmd中输入:
arco init test2
2、按步骤选择:业务组件-包名字
2、最后安装时候出错。最后一步显示项目构建失败 command erroe:npm run build
物料平台
选择 babel 编译时,gulpTS(tsconfig.compilerOptions) 不复制资源文件,但是 js 文件目录都变了,之后 babel 编译会报找不到文件,例如 svg 文件
TS_COMPILER='babel' arco-scripts build:component:es
选择 babel 编译时,gulpTS(tsconfig.compilerOptions) 之后先把资源文件复制一下,例如 img 文件等,为接下来 babel 处理提供对应的资源文件
Describe the bug
初始化项目后yarn run dev启动一直loading
To Reproduce
Steps to reproduce the behavior:
Expected behavior
正常启动
"devDependencies": {
"@arco-design/arco-vue-scripts": "latest",
"@arco-design/web-vue": "~2",
"@babel/core": "^7.14.6",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.14.7",
"@babel/preset-typescript": "^7.14.5",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^12.0.1",
"@storybook/addon-actions": "^6.3.0",
"@storybook/addon-essentials": "^6.3.0",
"@storybook/addon-links": "^6.3.0",
"@storybook/builder-webpack5": "^6.5.9",
"@storybook/manager-webpack5": "^6.5.9",
"@storybook/vue3": "^6.3.0",
"@types/fs-extra": "^9.0.6",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.12.0",
"@vue/babel-plugin-jsx": "^1.0.6",
"@vue/test-utils": "^2.0.0-beta.14",
"babel-loader": "^8.2.2",
"eslint": "^7.21.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-typescript": "^2.4.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^7.7.0",
"fast-glob": "^3.2.7",
"fs-extra": "^9.1.0",
"husky": "^4.3.7",
"less": "^4.1.1",
"less-loader": "^7.3.0",
"lint-staged": "^10.5.3",
"prettier": "^2.2.1",
"stylelint": "^13.8.0",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^20.0.0",
"stylelint-order": "^4.1.0",
"typescript": "^4.2.4",
"vue": "^3.2.0",
"vue-loader": "^16.2.0"
}
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
如何导致的,如何解决
按照最佳实践文档指引下安装运行之后报错Uncaught SyntaxError: Not available in legacy mode
Describe the bug
PS C:\Users***\Desktop\study_vue\hello-arco-pro> arco init hello-arco-pro
___ ____ _
/ | ______________ / __ \___ _____(_)___ _____
/ /| | / ___/ ___/ __ \/ / / / _ \/ ___/ / __ `/ __ \
/ ___ |/ / / /__/ /_/ / /_/ / __(__ ) / /_/ / / / /
/_/ |_/_/ \___/\____/_____/\___/____/_/\__, /_/ /_/
/____/
v1.26.1
? 请选择你希望使用的技术栈 Vue
? 请选择所要创建项目的类型 Arco Pro 项目
? 请选择 Arco Pro 模板 完整版(包含所有页面)
正在初始化项目于 C:\Users***\Desktop\study_vue\hello-arco-pro\hello-arco-pro
√ 获取项目模板成功
× 模板内容拷贝失败
Error: Failed to copy project content.
npm WARN config global --global
, --local
are deprecated. Use --location=global
instead.
at module.exports (C:\Users\***\.arco_template_cache\1655866434222\node_modules\arco-design-pro-vue\.arco-cli\init.js:25:13)
at C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\arco-cli-create-project\lib\index.js:129:23
at Generator.next (<anonymous>)
at fulfilled (C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\arco-cli-create-project\lib\index.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: EBUSY: resource busy or locked, rmdir 'C:\Users***.arco_template_cache\1655866434222\node_modules\arco-design-pro-vue'
node:fs:1180
return handleErrorFromBinding(ctx);
^
Error: EBUSY: resource busy or locked, rmdir 'C:\Users*.arco_template_cache\1655866434222\node_modules\arco-design-pro-vue'
at Object.rmdirSync (node:fs:1180:10)
at rmdirSync (C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:264:13)
at rimrafSync (C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:243:7)
at C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:279:39
at Array.forEach ()
at rmkidsSync (C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:279:26)
at rmdirSync (C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:269:7)
at rimrafSync (C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:243:7)
at C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:279:39
at Array.forEach () {
errno: -4082,
syscall: 'rmdir',
code: 'EBUSY',
path: 'C:\Users\*\.arco_template_cache\1655866434222\node_modules\arco-design-pro-vue'
}
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
npm ERR! code 1
npm ERR! path /Users/luojunjie/company/testing_platform/platform-arco/node_modules/mozjpeg
npm ERR! command failed
npm ERR! command sh -c node lib/install.js
npm ERR! compiling from source
npm ERR! connect ECONNREFUSED 0.0.0.0:443
npm ERR! mozjpeg pre-build test failed
npm ERR! Error: Command failed: /bin/sh -c autoreconf -fiv
npm ERR! autoreconf: export WARNINGS=
npm ERR! autoreconf: Entering directory '.'
npm ERR! autoreconf: configure.ac: not using Gettext
npm ERR! autoreconf: running: aclocal --force
npm ERR! autoreconf: configure.ac: tracing
npm ERR! autoreconf: configure.ac: not using Libtool
npm ERR! autoreconf: configure.ac: not using Intltool
npm ERR! autoreconf: configure.ac: not using Gtkdoc
npm ERR! autoreconf: running: /usr/local/Cellar/autoconf/2.71/bin/autoconf --force
npm ERR! configure.ac:84: warning: The macro `AC_TRY_COMPILE' is obsolete.
npm ERR! configure.ac:84: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
npm ERR! configure.ac:84: the top level
npm ERR! configure.ac:115: warning: The macro `AC_HEADER_STDC' is obsolete.
npm ERR! configure.ac:115: You should run autoupdate.
npm ERR! ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
npm ERR! configure.ac:115: the top level
npm ERR! configure.ac:128: warning: The macro `AC_TRY_RUN' is obsolete.
npm ERR! configure.ac:128: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
npm ERR! configure.ac:128: the top level
npm ERR! configure.ac:164: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:164: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:164: the top level
npm ERR! configure.ac:167: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:167: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:167: the top level
npm ERR! configure.ac:210: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:210: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:210: the top level
npm ERR! configure.ac:291: warning: The macro `AC_TRY_COMPILE' is obsolete.
npm ERR! configure.ac:291: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
npm ERR! configure.ac:291: the top level
npm ERR! configure.ac:289: warning: The macro `AC_TRY_COMPILE' is obsolete.
npm ERR! configure.ac:289: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
npm ERR! configure.ac:289: the top level
npm ERR! configure.ac:287: warning: The macro `AC_TRY_COMPILE' is obsolete.
npm ERR! configure.ac:287: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
npm ERR! configure.ac:287: the top level
npm ERR! configure.ac:285: warning: The macro `AC_TRY_COMPILE' is obsolete.
npm ERR! configure.ac:285: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
npm ERR! configure.ac:285: the top level
npm ERR! configure.ac:299: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:299: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:299: the top level
npm ERR! configure.ac:318: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:318: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:318: the top level
npm ERR! configure.ac:341: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:341: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:341: the top level
npm ERR! configure.ac:353: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:353: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:353: the top level
npm ERR! configure.ac:388: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:388: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:388: the top level
npm ERR! configure.ac:433: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:433: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:433: the top level
npm ERR! configure.ac:449: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:449: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:449: the top level
npm ERR! configure.ac:463: warning: The macro `AC_FD_CC' is obsolete.
npm ERR! configure.ac:463: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:399: AC_FD_CC is expanded from...
npm ERR! acinclude.m4:4: AC_PROG_NASM is expanded from...
npm ERR! configure.ac:463: the top level
npm ERR! configure.ac:468: warning: The macro `AC_FD_CC' is obsolete.
npm ERR! configure.ac:468: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:399: AC_FD_CC is expanded from...
npm ERR! acinclude.m4:4: AC_PROG_NASM is expanded from...
npm ERR! configure.ac:468: the top level
npm ERR! configure.ac:23: error: possibly undefined macro: AC_PROG_LIBTOOL
npm ERR! If this token and others are legitimate, please use m4_pattern_allow.
npm ERR! See the Autoconf documentation.
npm ERR! autoreconf: error: /usr/local/Cellar/autoconf/2.71/bin/autoconf failed with exit status: 1
npm ERR!
npm ERR!
npm ERR! at /Users/luojunjie/company/testing_platform/platform-arco/node_modules/bin-build/node_modules/execa/index.js:231:11
npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR! at async Promise.all (index 0)
npm ERR! A complete log of this run can be found in: /Users/luojunjie/.npm/_logs/2023-07-31T11_47_47_733Z-debug-0.log
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
$ tsc && cp -rf src/scripts/changelog/template/ lib/scripts/changelog/template
Done in 14.02s.
lerna info run Ran npm script 'build' in '@arco-design/arco-cli-block' in 8.8s:
yarn run v1.22.10
$ tsc
Done in 8.33s.
lerna ERR! yarn run build exited 127 in '@arco-design/arco-components'
lerna ERR! yarn run build stdout:
yarn run v1.22.10
$ arco-scripts build:component:es && arco-scripts build:component:css
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run build stderr:
/bin/sh: arco-scripts: command not found
error Command failed with exit code 127.
lerna ERR! yarn run build exited 127 in '@arco-design/arco-components'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! @arco-design/arco-cli@ preRelease: `lerna run clean && lerna run build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the @arco-design/arco-cli@ preRelease script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/lambert/.npm/_logs/2021-10-28T14_13_21_057Z-debug.log
能够本地构建成功,并在本地debug
node -v: v12.22.1
yarn -v: 1.22.10
git clone
npm run init
npm run preRelease
在使用 arco-cli 创建组件库并尝试创建团队站点时,遇到了 webpack 打包错误。
以下是问题的详细描述:
通过 arco init projectName
新建项目,项目类型是组件库。
项目建立好后根据 README.md 文档,新增一个 Button 组件并运行 dev
打开后 storybook 提示没找到配置的stories文件,检查下,去修改了 .storybook/main.js
:
stories: [path.resolve(isMonorepo ? 'packages/*' : './', 'stories/*.@(js|jsx|ts|tsx)')],
// 修改成
stories: ['../stories/*.@(js|jsx|ts|tsx)'],
storybook 可以正常预览。
后面按照官网文档搭建团队站点
cd projectName
arco init arco-team-site --pure
初始化完成后修改配置是“可用于 Arco 物料库模板的配置”,然后运行 yarn dev
发现无法打包,具体错误:
ERROR in ./.temp/submodule/component.js 8:0-68
Module not found: Error: Can't resolve '......componentsButtondemoindex.js' in 'D:\projects\test-design\arco-team-site\.temp\submodule'
@ ./.temp/index.zh-CN.js 3:0-64 18:13-32
ERROR in ./.temp/submodule/component.js 9:0-62
Module not found: Error: Can't resolve '......componentsButtonREADME.md' in 'D:\projects\test-design\arco-team-site\.temp\submodule'
@ ./.temp/index.zh-CN.js 3:0-64 18:13-32
ERROR in D:projectstest-designcomponentsButtonstyleindex.less
Module build failed: UnhandledSchemeError: Reading from "D:projectstest-designcomponentsButtonstyleindex.less" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
再去检查项目中具体文件
// arco-team-site/.temp/submodule/component.js
/* Do NOT edit this file manually, it's generated by arco-material-doc-site. */
/* eslint-disable */
// Import demos and document of Button
import * as _Button from '..\..\..\components\Button\demo\index.js';
import _ButtonDoc from '..\..\..\components\Button\README.md';
import 'D:\projects\test-design\components\Button\style\index.less';
// Export Modules
export const Button = { ..._Button, _SITE_DOC: _ButtonDoc };
像是webpack配置的错误,模块路径不对了,请问是什么问题导致的呢,该怎么解决。
环境
https://github.com/arco-design/arco-cli/blob/main/packages/arco-cli-auth/src/login.ts#L66
N/A
When arco login
or arco env --switch
on a remote machine, the post-login redirection to http://localhost:3333/login_result is impossible to succeed since arco login
is listening on a remote devbox instead of localhost.
Suggested solution: Grab all IP addresses of the os and prompt user with selection or manual input
正常创建
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:
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
按照文档执行:
npm install --save-dev @arco-design/web-vue
npm i -g arco-cli
arco init hello
输出:
___ ____ _
/ | ______________ / __ \___ _____(_)___ _____
/ /| | / ___/ ___/ __ \/ / / / _ \/ ___/ / __ `/ __ \
/ ___ |/ / / /__/ /_/ / /_/ / __(__ ) / /_/ / / / /
/_/ |_/_/ \___/\____/_____/\___/____/_/\__, /_/ /_/
/____/
v1.27.3
(node:6969) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'question' of undefined
at /usr/local/lib/node_modules/arco-cli/node_modules/arco-cli-dev-utils/lib/getAnswerFromUser.js:145:57
at Generator.next ()
at fulfilled (/usr/local/lib/node_modules/arco-cli/node_modules/arco-cli-dev-utils/lib/getAnswerFromUser.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use node --trace-warnings ...
to show where the warning was created)
(node:6969) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:6969) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
希望在内网环境中可以使用
在内网环境中,arco init demo报错如下:Error: Getaddrinfo EAI_AGAIN arco.design
尝试了下问题很多
能顺利运行使用系统本身配置的镜像源
正在初始化项目于xxxx
✔ 获取项目模板成功
✔ 模板内容拷贝完成
✔ 模板内容适配完成
✖ 项目依赖安失败,你可以稍后尝试手动安装项目依赖
Command Error: npm install --registry https://registry.npmjs.org/ --loglevel error
✖ 项目构建失败
Command Error: npm run build
国内安装缓慢,且过了很长时间才有失败提示。
建议这种时候,给出一个及时性提示:
当前安装命令为:npm install --registry https://registry.npmjs.org/ --loglevel error
debug 才知道原来可以通过在home目录配置:.arco-cli.json 来更换镜像源
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
--
这样就不用有个临时目录了,看着难受
Describe the bug
使用arco init <programname>
创建arco-pro-vue项目,
To Reproduce
Steps to reproduce the behavior:
arco init <programname>
commander erro: npm install
npm install --legacy-peer-deps
node_modules
文件夹出现arco-design-pro-vite
文件夹且根目录下的package.json
有dependencies:"arco-design-pro-vue": "^2.6.0"
Expected behavior
创建完成的node_modules文件夹中不出现arco-design-pro-vite
文件夹
Desktop (please complete the following information):
Additional context
npm install
会报错:ERESOLVE unable to resolve dependency tree;Could not resolve dependency:peer vite@"^4.0.0" from @vitejs/[email protected];node_modules/@vitejs/plugin-vue;dev @vitejs/plugin-vue@"^4.0.0" from the root project
No errors, it just says - Please commit your Git modification first
Generated Project
Describe the bug
windows 11;
node 16.17.0;
arco-cli init 报错,Error: spawn mkdir ENOENT
To Reproduce
Steps to reproduce the behavior:
arco init test
Expected behavior
成功拉去模板,并初始化项目
Desktop (please complete the following information):
arco-cli v1.27.5
node v16.14.1
MacBook M1
初始化项目成功
npm i -g arco-cli
arco init hello-arco-pro
Describe the bug
使用arco-cli初始化项目出现 请提交你的 Git 修改后继续操作 提示,然后停止,不知道下一步如何操作。
To Reproduce
Steps to reproduce the behavior:
Expected behavior
成功初始化项目
Desktop (please complete the following information):
Additional context
初始化项目是在一个没有任何.git文件的文件夹下初始化的
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Describe the bug
arco-script 用 BUILD_ENV_TS_COMPILER=babel arco-scripts build:component 构建时, esm 和 cjs 产物缺失了 .d.ts 文件。
但事实上 arco-script 用babel构建ts时用的 gulp-typescript 插件是支持产出 .d.ts 文件的,代码里没有支持生成 .d.ts
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.