dword-design / nuxt-mail

Adds email sending capability to a Nuxt.js app. Adds a server route, an injected variable, and uses nodemailer to send emails.
Other
239 stars 18 forks source link

Cannot assign to read only property 'exports' of object '#<Object>' #109

Closed Redemption198 closed 1 year ago

Redemption198 commented 2 years ago

After installing this module I get this error: Cannot assign to read only property 'exports' of object '#<Object>'

Which seems to be caused by:

function(module2, webpack_exports, webpack_require) { (function(module3) { webpack_require(0); Object.defineProperty(exports, "esModule", { value: true }); exports.default = void 0; var _default = (context, inject) => inject("mail", { send: async (config) => { try { await context.app.$axios.$post("/mail/send", config); } catch (error) { throw new Error(error.response.data); } } }); exports.default = _default; module3.exports = exports.default; <--- ERROR }).call(this, __webpack_require(62)(module2));

dword-design commented 2 years ago

@Redemption198 Where can this snippet be found?