Home>

In application.js, wavy lines appear in the bold part below.

require ("@ rails /"activestorage"). start ()
require requirejquery
require requirejquery_ujs
require requireturbolinks
require_tree..
require requireactivestorage

I don't understand why it is treated as an error.

whole application.js
require ("@ rails/ujs"). start ()
require ("@ rails/activestorage"). start ()
require ("channels")
require jquery
require jquery_ujs
require turbolinks
require_tree.
require active storage

I think this is a rudimentary question, but please tell me how to solve it.

  • Answer # 1

    Unknown word.cSpell

    This is simply the library nameJust not in the spell check dictionaryis. You can ignore it (if it gets in the way, stop spell checking).

    On the other hand, this is not grammatically established in JavaScript.

    require jquery
    require jquery_ujs
    require turbolinks
    require_tree.
    require active storage

    These are the Sprockets notations used in old Rails (and I missed them).app/javascriptsFor JavaScript processed by the following Webpackercan not use..