rollup / rollup-plugin-commonjs

This module has moved and is now available at @rollup/plugin-commonjs / https://github.com/rollup/plugins/blob/master/packages/commonjs
MIT License
502 stars 126 forks source link

this$1.error is not a function #325

Closed nerdynick closed 5 years ago

nerdynick commented 6 years ago

Not sure whats going on but it looks like the error function used on the line below is never defined.

(node:8424) UnhandledPromiseRejectionWarning: TypeError: Error transforming .../node_modules/iab-vast-loader/index.js with 'commonjs' plugin: this$1.error is not a function at .../node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.cjs.js:829:12 at

rollup-plugin-commonjs Version is 9.1.3

nerdynick commented 6 years ago

Digging farther the error starts out with the function parse() not being defined for this

Error effecting the promise: TypeError: parse is not a function in .../node_modules/iab-vast-loader/src/index.js at tryParse (../node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.cjs.js:194:10) at checkEsModule (.../node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.cjs.js:207:12) at .../node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.cjs.js:803:15 at

lukastaegert commented 6 years ago

It looks like your rollup version may be out of date. Both the error handler and the parse function are very recent additions to rollup.