A
A
Anton Misyagin2018-10-30 22:29:49
Ruby on Rails
Anton Misyagin, 2018-10-30 22:29:49

How to pull haml on vue in rails?

rails 5.2.1
installed webpacker, vue
created some.vue file
works
Enabled for styles lang="sass" - works out of the box
wanted to add coffee
called rails webpacker:install:coffee
...
Webpacker now supports Coffeescript renders
everything is fine
now trying to include template lang="haml"
I get a compilation error: Cannot find module 'hamljs'
How is haml support enabled?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Misyagin, 2018-10-31
@sunnmas

npm install hamljs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question