gpt4 book ai didi

ubuntu-18.04 - 在 ubuntu 18.04 中运行 odoo-11 时出现样式错误

转载 作者:行者123 更新时间:2023-12-05 08:14:28 25 4
gpt4 key购买 nike

我在 ubuntu 18.04 上运行 odoo 11.0,当启动服务器时,网站没有正确显示,我收到了这个错误:

Style error

The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.

(b'', b'The "--no-js" argument is deprecated, as inline JavaScript is disabled by default. Use "--js" to enable inline JavaScript (not recommended).
ParseError: Unrecognized input. Possibly missing '(' in mixin call. in - on line 1314, column 29:
1313 .o-caret-down(@caret-width: @caret-width-base) {
1314 .utils-caret-boilerplate;
1315 border-bottom: 0;

')This error occured while compiling the bundle 'web.assets_common' containing:
- /web/static/lib/bootstrap/less/variables.less
- /web/static/lib/bootstrap/less/mixins/vendor-prefixes.less
- /web/static/lib/bootstrap/less/mixins/buttons.less
- /web/static/lib/bootstrap/less/mixins/clearfix.less
- /web/static/lib/bootstrap/less/mixins/size.less
- /web/static/src/less/variables.less
- /web/static/src/less/utils.less
- /web_editor/static/src/less/web_editor.variables.less
- /web/static/lib/bootstrap-datetimepicker/src/less/_bootstrap-datetimepicker.less
- /web/static/src/less/fonts.less
- /web/static/src/less/navbar.less
- /web/static/src/less/mimetypes.less
- /web/static/src/less/modal.less
- /web/static/src/less/animation.less
- /web/static/src/less/rainbow.less
- /web/static/src/less/datepicker.less
- /web_planner/static/src/less/web_planner_common.less
- /web_tour/static/src/less/tip.less
- /web_tour/static/src/less/keyframes.less

我在节点 v12.8.3 上运行并尝试降级到 v10.5.0 但似乎没有任何效果。

最佳答案

我通过降级less版本解决了这个问题。

我有 less@4:

$ lessc --version
lessc 4.0.0 (Less Compiler) [JavaScript]

卸载较少:

sudo npm uninstall -g less

已安装 less@3.10.3:

sudo npm install -g less@3.10.3

它现在正在工作。我希望它有用。

关于ubuntu-18.04 - 在 ubuntu 18.04 中运行 odoo-11 时出现样式错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65435916/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com