scottcharlesworth / laravel-mix-polyfill

A Laravel Mix extension to include polyfills by using Babel, core-js, and regenerator-runtime
MIT License
50 stars 7 forks source link

Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>' #25

Closed dmyers closed 4 years ago

dmyers commented 4 years ago

I got this error today after installing this, any chance someone might know how to fix it?

The file in the stacktrace looks to be in my application, but it was working prior to installing:

module.exports = {
    methods: {
        numeral(value, format) {
            return numeral(value).format(format);
        },

        currency(amount) {
            return numeral(amount).format("$0,0.00");
        }
    }
};
dmyers commented 4 years ago

Nevermind it did seem to be my application.