Code Monkey home page Code Monkey logo

hzero-front's People

Contributors

hzero-admin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hzero-front's Issues

如何修改默认8000端口

前端项目默认运行8000端口,后端注册中心也是8000端口,导致不能同一台电脑上运行
找了半天也没到如何修改这个端口

执行yarn build:production时,报错找不到hzero-front/lib/router

大家好,

我在按照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?

关于ExcelExport组件权限控制的bug

在ExcelExport组件注释中,code为权限控制属性
图片
图片
使用的Button组件是Permission组件定义的。
而在Permission中的Button组件,检查权限却是使用的permissionList属性
图片
这就导致了在引用ExcelExport组件的地方,使用code属性添加权限控制不生效,现在的解决方法是通过otherButtonProps属性来添加permissionList属性。

Error: ./node_modules/@hzero-front-ui/themes/lib/theme1/data/common.js

$ 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.

这个报错怎么解决

lerna bootstrap failed

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=")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.