open-hand / hzero-front Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
按照流程启动项目之后,打开localhost:8000,会自动跳转到http://hzero-backend.open-front.hand-china.com/oauth/login,请问为什么会出现这种问题?要修改哪里?
前端项目默认运行8000端口,后端注册中心也是8000端口,导致不能同一台电脑上运行
找了半天也没到如何修改这个端口
大家好,
我在按照hzero部署文档中提到的yarn build:production
编译,提示错误
Error: .\node_modules\hzero-boot\lib\entry\root\index.js
Cannot find module: 'hzero-front/lib/router'. Make sure this package is installed.
我发现在.\node_modules\hzero-boot\lib\entry\root\index.js
中的第10行
return require('hzero-front/lib/router').default;
但是router.js文件是位于.\node_modules\hzero-front\src\router.js
请问大佬如何正确的修复这个问题?是只要把hzero-front目录下的src重命名为lib就可以了还是改代码?会有没有side effect?
$ yarn build:production
yarn run v1.22.15
$ cross-env NODE_PROFILE=production hzero-cli build --only-build-micro --all-packages
正在编译 hzero-front-hadm 模块
运行子模块微前端编译之前, 需要编译父模块, 正在编译父模块。。。
Creating an optimized production build...
ℹ Compiling 🚚 HZero Front
Browserslist: caniuse-lite is outdated. Please run the following command: yarn upgrade
✔ 🚚 HZero Front : Compiled with some errors in 1.69m
Error: ./node_modules/@hzero-front-ui/themes/lib/theme1/data/common.js
Attempted import error: 'fontCssMap' is not exported from '@hzero-front-ui/font'.
at /app/hzero-front/node_modules/hzero-webpack-scripts/scripts/build-only-build-parent.bin.js:198:39
at finalCallback (/app/hzero-front/node_modules/webpack/lib/Compiler.js:257:39)
at /app/hzero-front/node_modules/webpack/lib/Compiler.js:273:13
at AsyncSeriesHook.eval [as callAsync] (eval at create (/app/hzero-front/node_modules/tapable/lib/HookCodeFactory.js:33:10), :42:1)
at AsyncSeriesHook.lazyCompileHook (/app/hzero-front/node_modules/tapable/lib/Hook.js:154:20)
at onCompiled (/app/hzero-front/node_modules/webpack/lib/Compiler.js:271:21)
at /app/hzero-front/node_modules/webpack/lib/Compiler.js:681:15
at AsyncSeriesHook.eval [as callAsync] (eval at create (/app/hzero-front/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (/app/hzero-front/node_modules/tapable/lib/Hook.js:154:20)
at /app/hzero-front/node_modules/webpack/lib/Compiler.js:678:31
at AsyncSeriesHook.eval [as callAsync] (eval at create (/app/hzero-front/node_modules/tapable/lib/HookCodeFactory.js:33:10), :9:1)
at AsyncSeriesHook.lazyCompileHook (/app/hzero-front/node_modules/tapable/lib/Hook.js:154:20)
at /app/hzero-front/node_modules/webpack/lib/Compilation.js:1423:35
at AsyncSeriesHook.eval [as callAsync] (eval at create (/app/hzero-front/node_modules/tapable/lib/HookCodeFactory.js:33:10), :9:1)
at AsyncSeriesHook.lazyCompileHook (/app/hzero-front/node_modules/tapable/lib/Hook.js:154:20)
at /app/hzero-front/node_modules/webpack/lib/Compilation.js:1414:32
1
1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
这个报错怎么解决
Got error when I running lerna bootstrap
.
error http://nexus.saas.hand-china.com/content/groups/hzero-npm-group/react-draggable/-/react-draggable-4.3.1.tgz: Integrity check failed for "react-draggable" (computed integrity doesn't match our records, got "sha512-5wFq//gEoeTYprnd4ze8GrFc+Rbnx+9RkOMR3vk4EbWxj02U6L6T3yrlKeiw4X5CtjD2ma2+b3WujghcXNRzkw== sha1-QMxSCQgsp9YTEEv22vMTcswOERQ=")
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.