meteor - 尝试使用haml和coffeescript配置meteor并在meteor启动期间出错

标签 meteor

我正在尝试安装 this plug-in

所以我运行:
meteor create testcd testnpm install haml-coffee-meteormeteor
我得到以下信息:

$ meteor
[[[[[ ~/test ]]]]]

No dependency info in bundle. Filesystem monitoring disabled.
=> Errors prevented startup:
Exception while bundling application:
Error: Parse error - line 1, file /Users/xaxxon/test/node_modules/haml-coffee-meteor/spec/suites/templates/coffee/attributes.html
<div id='one'>
    at parseError (/Users/xaxxon/.meteor/packages/templating/88d1cd8ec8579600ff26b8a0ed7bf23295887674/html_scanner.js:23:14)
    at Object.html_scanner.scan (/Users/xaxxon/.meteor/packages/templating/88d1cd8ec8579600ff26b8a0ed7bf23295887674/html_scanner.js:36:15)
    at /Users/xaxxon/.meteor/packages/templating/88d1cd8ec8579600ff26b8a0ed7bf23295887674/package.js:44:32
    at _.extend.add_file (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/bundler.js:213:7)
    at self.api.add_files (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/bundler.js:126:16)
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/xaxxon/.meteor/tools/cc18dfef9e/lib/node_modules/underscore/underscore.js:78:11)
    at self.api.add_files (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/bundler.js:125:11)
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/xaxxon/.meteor/tools/cc18dfef9e/lib/node_modules/underscore/underscore.js:78:11)
    at Object.self.api.add_files (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/bundler.js:124:9)
    at _.extend.init_from_app_dir [as on_use_handler] (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/packages.js:246:11)
    at _.extend.use (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/bundler.js:464:11)
    at Object.exports.bundle (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/bundler.js:873:12)
    at /Users/xaxxon/.meteor/tools/cc18dfef9e/tools/run.js:697:26
    at exports.inFiber (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/fiber-helpers.js:24:12)

Please fix the problem and restart.

我真的不知道发生了什么,但如果我不安装 haml-coffee-meteor 包,它会按预期工作。我认为这个包可能试图改变 .html 文件的处理方式,并且这个单元测试期望传统的 html 可以解析,但现在系统期望 haml 并导致测试中断?但我什至不确定这是一个单元测试,所以我真的不知道如何进行。

最佳答案

您可以使用 Blade它具有类似 haml/jade 的语法,并且可以很容易地从大气中下载。

关于meteor - 尝试使用haml和coffeescript配置meteor并在meteor启动期间出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17509863/

相关文章:

javascript - ReactJS 和 Meteor : Generating <select> options?

meteor - 谷歌云 HTTP 负载均衡器总是为 meteor 应用程序返回不健康的实例

mongodb - 有没有办法获得 Mini Mongo 的 GUI 表示?

node.js - Bigbluebutton设置html5开发人员客户端登录以与join api开会调用空html响应

Meteor 如何使用多个 .less 文件

meteor - 将所有 Meteor 包更新到最新版本

javascript - 您将如何计算数组中数组中对象的实例

javascript - "Uncaught ReferenceError: Template is not defined"(路由器、Meteor、Mongo 相同)

ubuntu - 在 ubuntu docker 中创建用户而不是使用 root

meteor - 使用meteor 列出客户端上的所有用户