0.22CI报错

  • Choerodon平台版本:0.22.0

  • 运行环境:自主搭建

  • 问题描述:

    ["@babel/plugin-proposal-private-property-in-object", { “loose”: true }]
    to the “plugins” section of your Babel config.
    Though the “loose” option was set to “false” in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the “loose” mode option was set to “true” for @babel/plugin-proposal-private-property-in-object.
    The “loose” option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
    ["@babel/plugin-proposal-private-methods", { “loose”: true }]
    to the “plugins” section of your Babel config.
    [success] [webpackbar] Webpack: Compiled with some errors in 2.47m
    Warning:
    ERROR in ./react/routes/AutoTest/AutoTestList/components/ContainerLog/ContainerLog.js
    Module not found: Error: Can’t resolve ‘uuid/v1’ in ‘/builds/operation-devpp2dev/front-testmanager/react/routes/AutoTest/AutoTestList/components/ContainerLog’
    @ ./react/routes/AutoTest/AutoTestList/components/ContainerLog/ContainerLog.js 36:0-29 149:63-69
    @ ./react/routes/AutoTest/AutoTestList/components/ContainerLog/index.js
    @ ./react/routes/AutoTest/AutoTestList/components/index.js
    @ ./react/routes/AutoTest/AutoTestList/AutoTestList.js
    @ ./react/routes/AutoTest/AutoTestList/AutoTestListContainer.js
    @ ./react/routes/AutoTest/AutoTestList/index.js
    @ ./react/routes/AutoTest/AutoTestIndex.js
    @ ./react/routes/AutoTest/index.js
    @ ./react/index.js
    @ ./node_modules/@choerodon/boot/tmp/routes.index.js
    @ ./node_modules/@choerodon/boot/tmp/entry.index.js
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! @choerodon/testmanager@0.22.1 dist: choerodon-front-boot dist --config ./react/config.js
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the @choerodon/testmanager@0.22.1 dist 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! /root/.npm/_logs/2022-06-01T09_52_16_793Z-debug.log
ERROR: Job failed: command terminated with exit code 1

麻烦看下 安装的uuid的版本 以及使用地方的截图

由于uuid版本不同,用法也不同。需将报错处 import uuidv1 from 'uuid/v1';的用法改为 import { v1 as uuidv1 } from 'uuid';