1

I'm using this Vue CLI Plugin Electron Builder And after I build the project and run it I get this error "Uncaught TypeError: Cannot read property 'match' of undefined"

I look at the solutions in this stack overflow question but deleting the package-lock.json and node_modules and then running npm install doesn't work. I also made sure I'm running the latest version of node. Any help on this would be great.

Sennri
  • 31
  • 5
  • It has nothing to do with Electron. Search your code for `.match`. You are trying to use this function on `undefined` value, e.g.: `someVariable.match(...)` where `someVariable` is undefined – AlekseyHoffman Jul 19 '20 at 09:44
  • I searched my code for .match and nothing shows up. But in the dev tools there is a .match, but I have no idea where the code comes from- so I assumed it was from electron. Maybe it has to deal with an npm package – Sennri Jul 20 '20 at 14:47
  • Show us the full error trace (click on the error in the console) – AlekseyHoffman Jul 20 '20 at 14:48
  • I packaged my code and searched for .match and there appears to be .match's in the dist_electron folder(The packaged electron folder) So I think it has to do with the way it's packaged. – Sennri Jul 20 '20 at 14:58
  • Uncaught TypeError: Cannot read property 'match' of undefined at u (chunk-vendors.f76ff44a.js:27) at m (chunk-vendors.f76ff44a.js:1) at Object. (chunk-vendors.f76ff44a.js:1) at Object.0da7 (chunk-vendors.f76ff44a.js:1) at r (app.6d09f96e.js:1) at Object. (chunk-vendors.f76ff44a.js:46) at Object.ce7a (chunk-vendors.f76ff44a.js:46) at r (app.6d09f96e.js:1) at Object.305d (chunk-vendors.f76ff44a.js:15) at r (app.6d09f96e.js:1) – Sennri Jul 20 '20 at 14:59

0 Answers0