The program cannot be packaged

Hello developer,after the project download dependency ,run ‘npm run build’,but I can’t get the package file.
Software version
node version: v14.16.1
yarn version:1.22.19
computer system : window10
project version : v10.1.0
Thank you very much

The following is the error message:
npm run build

redash-client@11.0.0-dev build D:\测试redash打包\redash-master
yarn clean && yarn build:viz && NODE_ENV=production webpack

yarn run v1.22.19
$ rm -rf ./client/dist/
Done in 0.38s.
yarn run v1.22.19
$ (cd viz-lib && yarn build:babel)
$ yarn type-gen && yarn build:babel:base
$ tsc --emitDeclarationOnly
src/visualizations/box-plot/d3box.ts(317,1): error TS1128: Declaration or statement expected.
error Command failed with exit code 2.
info Visit for documentation about this command.
error Command failed with exit code 2.
info Visit for documentation about this command.
error Command failed with exit code 2.
info Visit for documentation about this command.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! redash-client@11.0.0-dev build: yarn clean && yarn build:viz && NODE_ENV=production webpack
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the redash-client@11.0.0-dev build 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! C:\Users\穆穆宇\AppData\Roaming\npm-cache_logs\2022-07-29T03_52_35_698Z-debug.log

Redash doesn’t use npm. It uses yarn. Please see the developer guide for the full list of steps.

thankyou for request

1 Like