【问题标题】:Broccoli error when trying to do ember tutorial尝试做 ember 教程时出现西兰花错误
【发布时间】:2017-08-13 00:58:26
【问题描述】:

我正处于 ember.js 教程这一部分的最后一步。 https://guides.emberjs.com/v2.14.0/tutorial/installing-addons/

我在添加 ember-cli-mirage 插件后尝试运行 ember 服务器时收到此错误。

steven@steven-VirtualBox:~/em-test$ ember s
Could not start watchman
Visit https://ember-cli.com/user-guide/#watchman for more info.
Livereload server on http://localhost:49153
'instrument' is imported from external module 'ember-data/-debug' but never used
The Broccoli Plugin: [BroccoliMergeTrees: Addon#treeFor (ember-cli-mirage - addon)] failed with:
SyntaxError: Unexpected end of input
    at Object.parse (native)
    at /home/steven/em-test/node_modules/broccoli-persistent-filter/lib/strategies/persistent.js:35:23
    at tryCatch (/home/steven/em-test/node_modules/rsvp/dist/rsvp.js:525:12)
    at invokeCallback (/home/steven/em-test/node_modules/rsvp/dist/rsvp.js:538:13)
    at /home/steven/em-test/node_modules/rsvp/dist/rsvp.js:606:14
    at flush (/home/steven/em-test/node_modules/rsvp/dist/rsvp.js:2415:5)
    at nextTickCallbackWith0Args (node.js:436:9)
    at process._tickCallback (node.js:365:13)

对解析这个堆栈有帮助吗?目前不知道这在做什么,只是想通过教程。

【问题讨论】:

  • 您使用的是哪些版本?

标签: ember.js broccolijs ember-cli-mirage


【解决方案1】:

如果不查看您的代码,将很难为您提供帮助,但这里有一个线索: SyntaxError:输入意外结束 检查您是否缺少结束标记或简单的东西。

【讨论】:

  • 感谢您的回复。我在一个新目录中重新启动了教程,并且已经过了这一点。我对目录进行了比较,唯一改变的是 package-lock.json。我想我有一些旧的 npm 包破坏了它。
  • @StevenB - 所以这个问题结束了?
  • 是的,我想是的。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-08-07
  • 1970-01-01
  • 1970-01-01
  • 2019-10-15
  • 1970-01-01
  • 1970-01-01
  • 2015-11-04
相关资源
最近更新 更多