$(…).tooltip is not a function rails 6 webpack

后端 未结 2 1902
刺人心
刺人心 2020-12-09 22:10

I have tried changing the versions of bootstrap, jquery, and popper but no luck. I don\'t think I am using more than one version of jquery. Not sure where it went wrong. It

2条回答
  •  佛祖请我去吃肉
    2020-12-09 22:22

    I think your webpack config should be like this

        new webpack.ProvidePlugin({
            $: "jquery",
            jQuery: "jquery",
            Popper: ['popper.js', 'default']
        }),
    

    Let me know if you still have any errors

提交回复
热议问题