Trying to set up a meteorite using haml and coffeescript and get an error while starting meteors

I am trying to install this plugin

so I run:

meteor create test

cd test

npm install haml-coffee-meteor

meteor

and I get the following:

 $ 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. 

I do not know what is going on, but if I do not install the haml-coffee-meteor package, it works as expected. I think that perhaps this package is trying to change the handling of .html files and this unit test expects the traditional html to be processed, but now the system expects haml and calls the test to break? But I'm not even sure if this is a unit test, so I really don't know how to do this.

+4
source share
2 answers

You can use Blade , which has the haml / jade-like syntax and which loads easily from the atmosphere.

+2
source

There are some problems around where you can install NPM packages directly in Meteor . But now, standard practice is to use a meteorite for packets. I did not find an HTML preprocessor package that did not give me headaches with MEteor, so you might be better off sticking to the helm. Good luck

0
source

Source: https://habr.com/ru/post/1490104/


All Articles