Trix editor is not displaying properly in Rails 6
Hello - I have installed Action Text in my Rails 6 app and made corresponding changes to my blog / controller, form to have rich_text_area show. Problem is that despite requiring actiontext in my application.scss - the Trix toolbar is not rendering properly. As in it is a long bar. Have now tried multiple combinations of requiring actiontext - but nothing seems to work.
In application.js :
Try `npm install @types/rails_activestorage
if it exists or add a new declaration (.d.ts) file containingdeclare module '@rails/activestorage';`ts(7016).
Similarly, require("trix"); and require("@rails/actiontext"); are giving similar errors. What should I do to make this run properly. Any help will be greatly appreciated.