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 :
require("@rails/activestorage").start(); is giving an error - Could not find a declaration file for module '@rails/activestorage'. .../node_modules/@rails/activestorage/app/assets/javascripts/activestorage.js' implicitly has an 'any' type.
Try `npm install @types/rails_activestorageif it exists or add a new declaration (.d.ts) file containing
declare 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.
Thank you!