rollup-loader
rollup-loader copied to clipboard
Cannot read property 'rollup' of undefined
I get the following error when I try to use this plugin
TypeError: Cannot read property 'rollup' of undefined
at Object.index (/home/risto/foobar/rollup-loader/index.js:58:54)
I'm using webpack 4.3.0
In my case I was using rollup from typescript and it was not able to be imported using the default imports convention.
The following triggered an error "TypeError: Cannot read property 'rollup' of undefined"
import rollup from "rollup";
However when I wrote it as a namespace import instead as below, the error was resolved...
import * as rollup from "rollup";