$ is not defined when installing jQuery in Rails via Webpack

后端 未结 5 1450
猫巷女王i
猫巷女王i 2021-02-18 19:04

I\'m trying to install jQuery in Rails 6.0.0.rc1 via Webpack and I\'m not sure what I\'m missing but I\'m getting the error $ is not defined in the browser console

5条回答
  •  情深已故
    2021-02-18 19:39

    This solution worked for me with Rails 6.0.2.2 and yarn 1.16.0 https://stackoverflow.com/a/54906972/2970582

提交回复
热议问题