7

Using webpack 5 to build vue projects throws the error: "Error: module property was removed from Dependency"

My understanding is webpack have removed a monkey-patch that vue is relying on.: https://github.com/webpack/webpack/issues/8537

What options are there for resolving this error?

2 Answers 2

8

For now a workaround will be just to downgrade to version 4 (package.json)

    "webpack": "^4.42.0",
Sign up to request clarification or add additional context in comments.

3 Comments

Good point, this is currently what I am doing.
What if you need a webpack5-specific plugin, such as Module Federation..?
@Fadils as I mentioned this this just a workaround, I didn't find a proper solution yet
1

Looks like they are working on adding webpack 5 support to vue3. I'll update this answer once it is released.

See: https://github.com/vuejs/vue-cli/pull/5611

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.