Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'match' of undefined in 1.4.0 #101

Closed
nwtgck opened this issue Nov 23, 2019 · 4 comments
Closed

TypeError: Cannot read property 'match' of undefined in 1.4.0 #101

nwtgck opened this issue Nov 23, 2019 · 4 comments

Comments

@nwtgck
Copy link

nwtgck commented Nov 23, 2019

Hi, developers!

When I updated vuetify-loader from 1.3.1 to 1.4.0, I had the following error by npm run build.

ERROR TypeError: Cannot read property 'match' of undefined

image

Demo

I made a minimal sample Vue project for this error like the following.

Minimal demo app: https://github.com/nwtgck/public-code/tree/ba1276f6885a021c17deb296cbd36522704510e2/vuetify-loader-cannot-read-match-of-undefined

The minimal project was made by vue create ... and vue add vuetify only, and updated vuetify-loader to 1.4.0. The npm-build works properly in vuetify-loader@1.3.1 but doesn't work in vuetify-loader@1.3.0 and vuetify-loader@1.4.0.

Maybe related to this comment: #97 (comment).

@nwtgck
Copy link
Author

nwtgck commented Nov 23, 2019

@jacekkarczmarczyk Could you tell me why this issue was closed? Was it duplicate or solved?
I found the reason: a8d0649. Thank you for your fix. I'm looking forward to releasing!

@jacekkarczmarczyk
Copy link
Member

Workaround (should work, didn't check)

// webpack.config.js

const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin')

exports.plugins.push(
  new VuetifyLoaderPlugin({})
)

or

// vue.config.js

module.exports = {
  chainWebpack: config => config.plugin('VuetifyLoaderPlugin').tap(args => [{}])
}

@Fallpoint
Copy link

This worked for me, thx!

@jacekkarczmarczyk
Copy link
Member

Thanks for information @Fallpoint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants