You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get this webpack error when trying to use promised-io via ES6 and babel like:
import fs from 'promised-io/fs';
...
/Users/kumar/dev/web-ext/dist/webpack:/(webpack)/buildin/amd-define.js:1
module.exports = function() { throw new Error("define cannot be used indirect"); };
^
Error: define cannot be used indirect
at Object.module.exports [as define] (/Users/kumar/dev/web-ext/dist/webpack:/(webpack)/buildin/amd-define.js:1:30)
at Object.module.exports.module.exports (/Users/kumar/dev/web-ext/dist/webpack:/~/promised-io/lazy-array.js:2:1)
at __webpack_require__ (/Users/kumar/dev/web-ext/dist/webpack:/webpack/bootstrap 2285ad9b75dd8ebedb0f:19:1)
...
I don't fully understand it but I guess it doesn't like how lazy-array.js is doing exports? If I put this in my webpack config the error goes away.
I get this webpack error when trying to use
promised-io
via ES6 and babel like:I don't fully understand it but I guess it doesn't like how
lazy-array.js
is doing exports? If I put this in my webpack config the error goes away.However, I get 'cannot find module' errors after that for somewhat obvious reasons.
The text was updated successfully, but these errors were encountered: