What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-26 09:09:03
Rails is not defined
// config/webpack/environment.js const { environment } = require('@rails/webpacker') const webpack = require('webpack') environment.plugins.prepend('Provide', new webpack.ProvidePlugin({ Rails: ['@rails/ujs'] }) ) module.exports = environment Add solution
Best helpers
Ranking is empty