Ask A Question

Notifications

You’re not receiving notifications from this thread.

Why does one work for one javascript but doen't work for other

JP asked in Rails
  $: 'jquery/src/jquery',
    jquery: 'jquery/src/jquery',

    jQuery: 'jquery/src/jquery',
    'window.jQuery': 'jquery',
    Popper: ['popper.js', 'default']

why does the one above work for one javascript but for other javascript to work I have to have this

  $: 'jquery',
  jQuery: 'jquery',
  'window.jQuery': 'jquery',
  Popper: ['popper.js', 'default']

This is in the environment.js

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,464+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.