npmyarnpkgpackage.jsonvegavega-embed

yarn build failure within vega embed


I have cloned the VegaEmbed repo where I am supposed to perform yarn which succeeds with the following output:

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)

Then, I am supposed to perform yarn build which fails with the following output:

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)

Searching for the keywords of the error message does not bring up any useful instructions on how to resolve this error.

When I search for style.ts I get a hit in my package.json as follows:

"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"
}

What's wrong in the clean section? Can someone please help me understand what needs to change there?


Solution

  • The problem was that del is a windows command. We need to switch to del-cli. I fixed it in https://github.com/vega/vega-embed/commit/eaa96696e8f7c1a1f6950968a0f5494e6b73ce91.