简体   繁体   English

Ember Cli不使用西兰花汇编汇编程序进行编译

[英]Ember Cli not compiling with broccoli-emblem-compiler

I am trying to set up this repository locally https://github.com/lrdiv/ember-soundcloud and i have come across to this issue with broccoli-emblem-compiler. 我正在尝试在本地https://github.com/lrdiv/ember-soundcloud上建立此存储库,而我用broccoli-emblem-compiler遇到了这个问题。 See the image in attached 见附件中的图片 终端错误

From my understanding the broccoli-emblem-compiler is not able to compile my emblem templates and i don't know how i can figure it out. 根据我的理解,西兰花会徽编译器无法编译我的会徽模板,而且我不知道该如何解决。

These are all the steps i have done to install and set up the project with Ember-Cli 这些是我使用Ember-Cli安装和设置项目的所有步骤

ember new soundcloud

ember install:addon ember-cli-coffeescript

ember install:npm broccoli-emblem-compiler

I have deleted the app folder and replace with the project https://github.com/lrdiv/ember-soundcloud that i have cloned 我已经删除了app文件夹并替换为我克隆的项目https://github.com/lrdiv/ember-soundcloud

then i have installed the other node modules required 然后我已经安装了所需的其他节点模块

ember install:npm broccoli-static-compiler

ember install:npm broccoli-merge-trees  

ember install:npm install body-parser

and at the end i run 最后我跑了

ember server , and in my terminal i get that error i have attached. ember server ,并且在我的终端中出现了我已附加的错误。

What can i do now to sort this out? 我现在该怎么办才能解决这个问题? What's really the problem? 到底是什么问题?

I did many things to try to fix this. 我做了很多事情试图解决这个问题。 One was replacing the project broccoli-emblem-compiler with this line in the project settings: 一种是在项目设置中用以下这一行替换项目broccoli-emblem-compiler:

"broccoli-emblem-compiler": "git+ https://github.com/cascalheira/broccoli-emblem-compiler.git " “ broccoli-emblem-compiler”:“ git + https://github.com/cascalheira/broccoli-emblem-compiler.git

At some time the error went away, I think it was when I used this repository. 有时错误消失了,我认为这是我使用该存储库的时间。 It is mentioned in the other issues. 在其他问题中提到了它。

I ran into problems with broccoli-emblem-compiler , but just had success with ember-cli-emblem-hbs-printer - 我遇到了broccoli-emblem-compiler ,但在ember-cli-emblem-hbs-printer却取得了成功-

https://github.com/201-created/ember-cli-emblem-hbs-printer https://github.com/201-created/ember-cli-emblem-hbs-printer

I was able to solve this by specifying a version of emblem.js in my package.json file. 我可以通过在package.json文件中指定Emblem.js版本来解决此问题。

Specifically, I added the following line: 具体来说,我添加了以下行:

"emblem": "0.3.14"

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

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