Vega 嵌入中的纱线构建失败
yarn build failure within vega embed
我已经克隆了 VegaEmbed repo,我应该在其中执行 yarn
,它成功并产生以下输出:
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@2.3.2: The platform "win32" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ beemo create-config
[1] CONFIG Creating config files (476ms)
然后,我应该执行 yarn build
,但失败并显示以下输出:
yarn run v1.22.10
$ yarn clean && yarn build:style
$ del build build-es5 src/style.ts
Parameter format not correct - "style.ts".
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS C:\Users\hmiri\Downloads\VegaEmbed> yarn
yarn install v1.22.10
[1/4] Resolving packages...
success Already up-to-date.
$ beemo create-config
[1] CONFIG Creating config files (416ms)
搜索错误消息的关键字不会显示任何有关如何解决此错误的有用说明。
当我搜索 style.ts
时,我在 package.json
中得到如下结果:
"scripts": {
"prebuild": "yarn clean && yarn build:style",
"build": "rollup -c",
"build:style": "./build-style.sh",
"clean": "del build build-es5 src/style.ts",
"prepublishOnly": "yarn clean && yarn build",
"preversion": "yarn lint && yarn test",
"serve": "browser-sync start --directory -s -f build *.html",
"start": "yarn build && concurrently --kill-others -n Server,Rollup 'yarn serve' 'rollup -c -w'",
"pretest": "yarn build:style",
"test": "beemo jest --stdio stream",
"test:inspect": "node --inspect-brk ./node_modules/.bin/jest --runInBand",
"prepare": "beemo create-config",
"prettierbase": "beemo prettier '*.{css,scss,html}'",
"eslintbase": "beemo eslint .",
"format": "yarn eslintbase --fix && yarn prettierbase --write",
"lint": "yarn eslintbase && yarn prettierbase --check"
}
clean
部分有什么问题?有人可以帮我了解那里需要更改的内容吗?
问题是 del 是一个 windows 命令。我们需要切换到 del-cli。我在 https://github.com/vega/vega-embed/commit/eaa96696e8f7c1a1f6950968a0f5494e6b73ce91.
中修复了它
我已经克隆了 VegaEmbed repo,我应该在其中执行 yarn
,它成功并产生以下输出:
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@2.3.2: The platform "win32" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ beemo create-config
[1] CONFIG Creating config files (476ms)
然后,我应该执行 yarn build
,但失败并显示以下输出:
yarn run v1.22.10
$ yarn clean && yarn build:style
$ del build build-es5 src/style.ts
Parameter format not correct - "style.ts".
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS C:\Users\hmiri\Downloads\VegaEmbed> yarn
yarn install v1.22.10
[1/4] Resolving packages...
success Already up-to-date.
$ beemo create-config
[1] CONFIG Creating config files (416ms)
搜索错误消息的关键字不会显示任何有关如何解决此错误的有用说明。
当我搜索 style.ts
时,我在 package.json
中得到如下结果:
"scripts": {
"prebuild": "yarn clean && yarn build:style",
"build": "rollup -c",
"build:style": "./build-style.sh",
"clean": "del build build-es5 src/style.ts",
"prepublishOnly": "yarn clean && yarn build",
"preversion": "yarn lint && yarn test",
"serve": "browser-sync start --directory -s -f build *.html",
"start": "yarn build && concurrently --kill-others -n Server,Rollup 'yarn serve' 'rollup -c -w'",
"pretest": "yarn build:style",
"test": "beemo jest --stdio stream",
"test:inspect": "node --inspect-brk ./node_modules/.bin/jest --runInBand",
"prepare": "beemo create-config",
"prettierbase": "beemo prettier '*.{css,scss,html}'",
"eslintbase": "beemo eslint .",
"format": "yarn eslintbase --fix && yarn prettierbase --write",
"lint": "yarn eslintbase && yarn prettierbase --check"
}
clean
部分有什么问题?有人可以帮我了解那里需要更改的内容吗?
问题是 del 是一个 windows 命令。我们需要切换到 del-cli。我在 https://github.com/vega/vega-embed/commit/eaa96696e8f7c1a1f6950968a0f5494e6b73ce91.
中修复了它