gpt4 book ai didi

symfony - 类型错误 : Cannot read property 'contents' of undefined

转载 作者:行者123 更新时间:2023-12-02 10:56:58 28 4
gpt4 key购买 nike

我在运行 assetic:dump 时收到此错误:

  [Assetic\Exception\FilterException]                                                             
An error occurred while running:
'/usr/bin/nodejs' '/tmp/assetic_lessGtKxv8'
Error Output:
/usr/local/lib/node_modules/less/lib/less/parser/parser.js:108
imports.contents[fileInfo.filename] = str;
^
TypeError: Cannot read property 'contents' of undefined
at Object.Parser.parse (/usr/local/lib/node_modules/less/lib/less/parser/parser.js:108:20)
at Object.<anonymous> (/tmp/assetic_lessGtKxv8:4:142)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
Input:
// Core variables and mixins
@import "variables.less";
@import "mixins.less";
// Reset
@import "normalize.less";
@import "print.less";
// Core CSS
@import "scaffolding.less";
@import "type.less";
@import "code.less";
@import "grid.less";
@import "tables.less";
@import "forms.less";
@import "buttons.less";
// Components
@import "component-animations.less";
@import "glyphicons.less";
@import "dropdowns.less";
@import "button-groups.less";
@import "input-groups.less";
@import "navs.less";
@import "navbar.less";
@import "breadcrumbs.less";
@import "pagination.less";
@import "pager.less";
@import "labels.less";
@import "badges.less";
@import "jumbotron.less";
@import "thumbnails.less";
@import "alerts.less";
@import "progress-bars.less";
@import "media.less";
@import "list-group.less";
@import "panels.less";
@import "wells.less";
@import "close.less";
// Components w/ JavaScript
@import "modals.less";
@import "tooltip.less";
@import "popovers.less";
@import "carousel.less";
// Utility classes
@import "utilities.less";
@import "responsive-utilities.less";

我有更少的 458、assetic = dev-master 和 symfony 2.5。

最佳答案

我遇到了完全相同的问题,如果您使用的是 Less@2.0+,请尝试降级到 Less@1.7.5

注意:注意到您说您少于 458。您需要Less编译器(节点包),而不是Less Linux文件阅读器。

关于symfony - 类型错误 : Cannot read property 'contents' of undefined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27252881/

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