I'm not sure how to fix your issue but I think it's related to the latest version of laravel installing webpack 4 and the series you reference was on webpack 3.
Might help you narrow down your googling
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi all,
i am trying to use the Vue Test Utils libraries for testing some Vue.JS components but I am facing issues when running the tests - following error message is showing up after I run "npm test":
Error: Chunk.parents: Use ChunkGroup.getParents() instead
I have tried to follow the instructions from Episode 6 of the series "Testing Vue" on a fresh installation of Laravel, unfortunately that does not work. Anybody can help?
Many thanks, Julien
Thanks a lot for getting back to me!
I believe you are right about the version of webpack 4. What eventually solved the issue for me was to use mocha-webpack version 2.0 beta.
In case this can help anybody else, here are the necessary dev dependencies fro my package.json:
"@vue/test-utils": "^1.0.0-beta.28",
"expect": "^23.6.0",
"jsdom": "^13.1.0",
"jsdom-global": "^3.0.2",
"mocha": "^5.2.0",
"mocha-webpack": "^2.0.0-beta.0",
Please or to participate in this conversation.