open-hand / choerodon-front Goto Github PK
View Code? Open in Web Editor NEWChoerodon Front is a total front-end of Choerodon that combines Choerodon IAM and Choerodon DevOps.
Home Page: http://choerodon.io
License: Apache License 2.0
Choerodon Front is a total front-end of Choerodon that combines Choerodon IAM and Choerodon DevOps.
Home Page: http://choerodon.io
License: Apache License 2.0
1、本仓库工程是否对应这个网站(https://choerodon.com.cn/#/iam/register-organization)的项目
2、使用yarn或者npm都是会报@choerodon/***相关依赖的错误,依赖不是在npm吧?还是说在你们私域源库里,要怎么在本地跑起来你们的工程代码
/choerodon/choerodon-front$ npm install
npm WARN deprecated [email protected]: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @choerodon/[email protected]
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'choerodon-front'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! /home/devops/.npm/_logs/2019-07-12T12_23_54_130Z-debug.log
No matching version found for @choerodon/[email protected]
版本1.0.0的tag版本,报错 Module not found: Error: Can't resolve 'uuid/v4'
改为const uuidv4 = require('uuid/v4');不再报错
使用 tag 为 0.24.0
cnpm install
✔ Installed 14 packages ✔ Linked 0 latest versions ✔ Run 0 scripts ✔ All packages installed (used 21ms(network 18ms), speed 0B/s, json 0(0B), tarball 0B)
npm start
> @choerodon/[email protected] start
> choerodon-front-boot start --config ./react/config.js
error: /Users/hank.geng/work/hzero/choerodon-front/node_modules/_@[email protected]@@choerodon/boot/bin/choerodon-front-boot-start(1) not executable. try chmod or run with root
我的环境版本信息:
node -v
v12.21.0
npm -v
7.8.0
Choerodon平台版本:0.14.0
运行环境:自主搭建
问题描述:
待办事项和活跃冲刺模块,如果数据超过700条,会导致整个浏览器卡顿,操作延迟,希望可以支持分页,或者做一下优化
npm WARN deprecated [email protected]: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @choerodon/[email protected]
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'choerodon-front'
npm ERR! notarget
choerodon-front根目录下确实没有文件tsconfig.json,但是为什么choerodon-front-boot start --config ./react/config.js
会执行呢
$ npm start
> @choerodon/[email protected] start E:\www\choerodon-front\1-choerodon-front
> choerodon-front-boot start --config ./react/config.js
Failed to compile.
Cannot find "E:\www\choerodon-front\1-choerodon-front\tsconfig.json" file. Please check webpack and ForkTsCheckerWebpackPlugin configuration.
Possible errors:
- wrong `context` directory in webpack configuration (if `tsconfig` is not set or is a relative path in fork plugin configuration)
- wrong `tsconfig` path in fork plugin configuration (should be a relative or absolute path)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @choerodon/[email protected] start: `choerodon-front-boot start --config ./react/config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @choerodon/[email protected] start 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\dtLingZhong\AppData\Roaming\npm-cache\_logs\2022-06-16T12_14_16_454Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'D:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle @choerodon/[email protected]~prestart: @choerodon/[email protected]
6 info lifecycle @choerodon/[email protected]~start: @choerodon/[email protected]
7 verbose lifecycle @choerodon/[email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle @choerodon/[email protected]~start: PATH: D:\Program Files\nvm\v12.22.12\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;E:\www\choerodon-front\1-choerodon-front\node_modules\.bin;C:\Users\dtLingZhong\bin;D:\Git\mingw64\bin;D:\Git\usr\local\bin;D:\Git\usr\bin;D:\Git\usr\bin;D:\Git\mingw64\bin;D:\Git\usr\bin;C:\Users\dtLingZhong\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Python39\Scripts;C:\Python39;D:\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;D:\Git\cmd;C:\Program Files\TortoiseGit\bin;D:\Program Files\nvm\v12.22.12\node_global;D:\Program Files (x86)\NetSarang\Xftp 7;C:\ProgramData\chocolatey\bin;D:\Program Files\nvm;D:\Program Files\nodejs;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;D:\Program Files\xshell 7;D:\Program Files\PuTTY;D:\微信web开发者工具\dll;D:\Program Files (x86)\AOMEI\AOMEI Backupper\6.9.0;C:\Users\dtLingZhong\AppData\Local\Microsoft\WindowsApps;C:\Users\dtLingZhong\AppData\Roaming\npm;C:\Users\dtLingZhong\AppData\Local\Programs\Microsoft VS Code\bin;D:\Program Files\nvm;D:\Program Files\nodejs;D:\Git\usr\bin\vendor_perl;D:\Git\usr\bin\core_perl
9 verbose lifecycle @choerodon/[email protected]~start: CWD: E:\www\choerodon-front\1-choerodon-front
10 silly lifecycle @choerodon/[email protected]~start: Args: [ '/d /s /c', 'choerodon-front-boot start --config ./react/config.js' ]
11 silly lifecycle @choerodon/[email protected]~start: Returned: code: 1 signal: null
12 info lifecycle @choerodon/[email protected]~start: Failed to exec start script
13 verbose stack Error: @choerodon/[email protected] start: `choerodon-front-boot start --config ./react/config.js`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (D:\Program Files\nvm\v12.22.12\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:314:20)
13 verbose stack at ChildProcess.<anonymous> (D:\Program Files\nvm\v12.22.12\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:314:20)
13 verbose stack at maybeClose (internal/child_process.js:1022:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
14 verbose pkgid @choerodon/[email protected]
15 verbose cwd E:\www\choerodon-front\1-choerodon-front
16 verbose Windows_NT 10.0.19044
17 verbose argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
18 verbose node v12.22.12
19 verbose npm v6.14.16
20 error code ELIFECYCLE
21 error errno 1
22 error @choerodon/[email protected] start: `choerodon-front-boot start --config ./react/config.js`
22 error Exit status 1
23 error Failed at the @choerodon/[email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
该项目具体实现都是在依赖中的子模块完成的,尝试过以下做法
部分关键命令:
git clone https://github.com/open-hand/choerodon-front.git
cd choerodon-front
git checkout 1.0.1
git clone https://github.com/open-hand/knowledgebase-service.git
cd knowledgebase-service
git checkout 1.0.3
npm install
npm run compile
npm run dist
cd ..
# 修改 package.json 知识库依赖为本地
npm install --legacy-peer-deps
npm run dist
npm start
choerodon-front 的 package.json 修改后如下:
{
"name": "@choerodon/choerodon-front",
"routeName": "c7n",
"version": "1.0.1",
"description": "Choerodon Front",
"scripts": {
"start": "choerodon-front-boot start --config ./react/config.js",
"dist": "node --max_old_space_size=4096 node_modules/@choerodon/boot/bin/choerodon-front-boot-dist --config ./react/config.js --esbuild",
"clean": "rm -rf ./src"
},
"contributors": [
"choerodon"
],
"license": "ISC",
"resolutions": {
"react": "16.14.0",
"react-dom": "16.14.0"
},
"dependencies": {
"@choerodon/boot": "0.23.3",
"@choerodon/master": "1.0.8",
"@choerodon/base": "1.0.6",
"@choerodon/devops": "1.0.7",
"@choerodon/asgard": "1.0.0",
"@choerodon/notify": "1.0.0",
"@choerodon/manager": "1.0.0",
"@choerodon/agile": "1.0.4",
"@choerodon/testmanager": "1.0.1",
"@choerodon/knowledge": "./knowledgebase-service",
"@choerodon/code-repo": "1.0.1",
"@choerodon/prod-repo": "1.0.1",
"react-color": "^2.14.1"
},
"devDependencies": {
"@babel/code-frame": "^7.22.5",
"@choerodon/components": "^1.0.1",
"esbuild-webpack-plugin": "^1.0.5",
"webpack-bundle-analyzer": "^3.8.0"
}
}
启动后知识库页面白屏无限 loading,控制台提示
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'code')
at PermissionProvider.js:113:1
at Array.forEach (<anonymous>)
at PermissionProvider.js:112:1
错误来自 node_modules\@choerodon\master\lib\containers\components\c7n\tools\permission\PermissionProvider.js
尝试定位问题,加了几个 console.log 发现变量都没有定义,但实际上 /iam/choerodon/v1/permissions/menus/check-permissions
确有返回数据
其他模块用以上方法也遇到同样问题,页面白屏无限 loading,希望能给予指导,谢谢!
Pull the choerodon-front from the address provided by github, run npm install to download the dependencies, and find that the version of the package that the project depends on is not correct?this is why?
I'm not able to run npm install instead i did yarn install and yarn start. After Build sucessfully How to access the choerodon front?
I'm not able to find the One click setup in the documentation.
📦 building modules (10990/10991 modules)DEPRECATION WARNING on line 24 of /home/devops/choerodon/choerodon-front/node_modules/@choerodon/boot/lib/containers/components/c7n/header/style/Logo.scss:
The operation #3F51B5 minus #0f1216
is deprecated and will be an error in future versions.
Consider using Sass's color functions instead.
http://sass-lang.com/documentation/Sass/Script/Functions.html#other_color_functions
📦 building modules (10994/10994 modules)Extracted theme color css content length: 27553
webpack: bundle build is now finished.
DONE Compiled successfully in 202191ms 12:58:36 PM
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.