Hey there, I believe this is a compability issue iirc the loaders have newer major version release to cater for the new major version release for webpack.
If you can refer to the package.json of my sample project, you might notice the loaders' version is in 1.x.x
Hi, I followed these instructions carefully in a Rails 6 project, but get an error to console, for both imports-loader and expose-loader
Uncaught Error: Module build failed (from ./node_modules/imports-loader/dist/cjs.js): TypeError: this.getOptions is not a function
My package.json has
"dependencies": {
"datatables.net-bs4": "^1.10.23",
"devDependencies": {
"css-loader": "^5.0.1",
"expose-loader": "^2.0.0",
"imports-loader": "^2.0.0",
Do you have any idea why those module builds fail?
Hey there, I believe this is a compability issue iirc the loaders have newer major version release to cater for the new major version release for webpack.
If you can refer to the package.json of my sample project, you might notice the loaders' version is in 1.x.x
github.com/MutatedBread/rails_webp...
I might update the article sometime from now.