繁体   English   中英

Ember-cli构建错误-Broccoli插件:[broccoli-persistent-filter:TemplateCompiler]失败,原因是:

[英]Ember-cli build error— The Broccoli Plugin: [broccoli-persistent-filter:TemplateCompiler] failed with:

建立错误

corporate-dashboard-app/templates/geospatialview.hbs (in 
H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 
4\Corporate 
Dashboard Application\p1\corporate_dashboard-
app\tmp\broccoli_persistent_filtertemplate_compiler-input_base_path-
K5dlxt4H.tmp)

Broccoli插件:[broccoli-persistent-filter:TemplateCompiler]失败,原因:

Error: Parse error on line 7:...cation}} </h5>      {{/#each}}      {{outlet}
----------------------^

 Expecting 'ID', 'STRING', 'NUMBER', 'BOOLEAN', 'UNDEFINED', 'NULL', 'DATA', got 'INVALID'
at Object.parseError (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\bower_components\ember\ember-template-compiler.js:25665:23)
at Object.parse (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\bower_components\ember\ember-template-compiler.js:25734:34)
at Object.parse (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\bower_components\ember\ember-template-compiler.js:25317:59)
at Object.preprocess (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\bower_components\ember\ember-template-compiler.js:23690:77)
at precompile (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\bower_components\ember\ember-template-compiler.js:11991:34)
at Object.precompile (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\bower_components\ember\ember-template-compiler.js:11155:12)
at Object.template (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\node_modules\ember-cli-htmlbars\utils.js:29:40)
at TemplateCompiler.processString (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\node_modules\ember-cli-htmlbars\index.js:68:36)
at Promise.then.result.output (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\node_modules\broccoli-persistent-filter\lib\strategies\persistent.js:41:23)
at initializePromise (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\node_modules\rsvp\dist\rsvp.js:588:5)


The broccoli plugin was instantiated at: 
at TemplateCompiler.Plugin (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\node_modules\broccoli-plugin\index.js:7:31)
at TemplateCompiler.Filter [as constructor] (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\node_modules\broccoli-persistent-filter\index.js:62:10)
at new TemplateCompiler (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\node_modules\ember-cli-htmlbars\index.js:20:10)
at TemplateCompiler (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\node_modules\ember-cli-htmlbars\index.js:12:12)
at Object.toTree (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\node_modules\ember-cli-htmlbars\ember-addon-main.js:32:34)
at H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\node_modules\ember-cli-preprocess-registry\preprocessors.js:180:26
at Array.forEach (native)
at processPlugins (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\node_modules\ember-cli-preprocess-registry\preprocessors.js:178:11)
at module.exports.preprocessTemplates (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\node_modules\ember-cli-preprocess-registry\preprocessors.js:161:10)
at EmberApp._processedTemplatesTree (H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project 4\Corporate Dashboard Application\p1\corporate_dashboard-app\node_modules\ember-cli\lib\broccoli\ember-app.js:836:48)

我试图使用显示在车把模板中的json文件

{{each model}} 

npm版本:4.1.1,节点版本:6.9.1,ember-cli版本:2.10.0,

each语法都是错误的。 试试下面,

{{model}} 
{{#each model as |item|}}   
<h5>{{item.company_location}} </h5> 
{{/each}} 
{{outlet}}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM