Answers for "Uncaught TypeError: $(...).tooltip is not a function webpack"

0

rails 6 TypeError: $(...).tooltip is not a function

const { environment } = require('@rails/webpacker');
const customConfig = require('./custom');
const webpack = require('webpack');

environment.plugins.append(
  'Provide',
  new webpack.ProvidePlugin({
    $: 'jquery/src/jquery',
    jQuery: 'jquery/src/jquery',
    Popper: ['popper.js', 'default']
  })
);
environment.config.merge(customConfig);

module.exports = environment;
Posted by: Guest on September-02-2020

Code answers related to "Uncaught TypeError: $(...).tooltip is not a function webpack"

Browse Popular Code Answers by Language