nuxt-community / svg-module

Super simple svg loading module for Nuxt.js
MIT License
340 stars 35 forks source link

Cannot read properties of undefined #96

Open TuguldurJ opened 2 years ago

TuguldurJ commented 2 years ago

After I upgrade to nuxt3 stable version, error shown: ERROR Cannot start nuxt: Cannot read properties of undefined (reading 'options')

module.js:13 const ORIGINAL_TEST = /.(png|jpe?g|gif|svg|webp|avif)$/i; const ORIGINAL_TEST_OLD_NUXT = /.(png|jpe?g|gif|svg|webp)$/i; const REPLACEMENT_TEST = /.(png|jpe?g|gif|webp|avif)$/i;

export default function svgModule(moduleOptions) { const options = Object.assign({}, this.options.svg, moduleOptions); this.extendBuild(setup.bind(this, options)); }

mklueh commented 1 year ago

Same here. Not the only module that is affected. For some reasons, it does not happen in all apps within my NX workspace

egidiusmengelberg commented 1 year ago

Having the same issue. But didn't change anything since last deployment.

arkhamRejek commented 1 year ago

+1