我已经完成了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)解析这个堆栈有什么帮助吗?现在我不知道这是怎么回事,我只是想把教程读完。
发布于 2017-08-13 11:46:02
不看代码就很难帮到你,但这里有个提示: SyntaxError:意外的输入结束检查你是否遗漏了结束标记或简单的东西。
https://stackoverflow.com/questions/45656186
复制相似问题