简体   繁体   English

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

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

Build error 建立错误

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)

The Broccoli Plugin: [broccoli-persistent-filter:TemplateCompiler] failed with: 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)

i was trying to get a json file displayed in a handlebar template using 我试图使用显示在车把模板中的json文件

{{each model}} 

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

each syntax is wrong. each语法都是错误的。 try the below, 试试下面,

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

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

相关问题 Ember js 构建错误 (broccoli-persistent-filter:EslintValidationFilter) - Ember js Build Error (broccoli-persistent-filter:EslintValidationFilter) ember cli应用程序构建失败:Broccoli插件:[object Object]失败: - ember cli application build fails: The Broccoli Plugin: [object Object] failed with: 如何通过实时重载将西兰花插件添加到ember-cli应用程序? - How to add a broccoli plugin to ember-cli app with live-reload? Ember-CLI:找不到模块&#39;broccoli-static-compiler&#39;错误:无法找到模块&#39;broccoli-static-compiler&#39; - Ember-CLI: Cannot find module 'broccoli-static-compiler'Error: Cannot find module 'broccoli-static-compiler' 如何为特定的浏览器导入脚本Ember-CLi Broccoli - How to import scripts for specific browsers Ember-CLi Broccoli Broccoli 插件:[UglifyWriter] 失败 - The Broccoli Plugin: [UglifyWriter] failed with 如何修复 Broccoli Builder 在 Ember 应用程序中使用“UglifyWriter”插件时遇到错误 - How to fix Broccoli Builder ran into an error with `UglifyWriter` plugin in Ember application Ember.js-Broccoli插件:[对象对象]失败,原因: - Ember.js - The Broccoli Plugin: [object Object] failed with: EmberJS 在 Ember 构建产品时出现 Broccoli 错误 - EmberJS Getting Broccoli error when Ember build prod 如何将西兰花罗盘添加到ember-cli v0.0.28? - How to add broccoli-compass to ember-cli v0.0.28?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM