---
title: "Discussion on \"Fixing the \"'compilation' argument must be an instance of Compilation\" Duplicate Webpack Version Error\" | Hashnode"
description: "Discussion on \"Fixing the \"'compilation' argument must be an instance of Compilation\" Duplicate Webpack Version Error\". This is probably going to be a very niche topic, but I occasionally run into this very obscure webpack error, and while I know how to fix it now, it caused much pain for a few weeks. It occurs when you're trying to build a yarn workspace with multipl..."
url: "https://hashnode.com/posts/fixing-the-compilation-argument-must-be-an-instance-of-compilation-duplicate-webpack-version-error/657f4e1b819dad12fb90c03e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Fixing the "'compilation' argument must be an instance of Compilation" Duplicate Webpack Version Error](https://blog.emilykauffman.com/fixing-the-compilation-argument-must-be-an-instance-of-compilation-duplicate-webpack-version-error?utm_source=hashnode&utm_medium=feed)

This is probably going to be a very niche topic, but I occasionally run into this very obscure webpack error, and while I know how to fix it now, it caused much pain for a few weeks. It occurs when you're trying to build a yarn workspace with multipl...

May 13, 2022 · 2 min read · blog.emilykauffman.com  
Read the article

-   [#webpack-encore](https://hashnode.com/tag/webpack-encore)
-   [#webpack-encor](https://hashnode.com/tag/webpack-encor)
-   [#webpack](https://hashnode.com/tag/webpack)
-   [#yarn](https://hashnode.com/tag/yarn)
-   [#yarn-workspace](https://hashnode.com/tag/yarn-workspace)
-   [#symfony](https://hashnode.com/tag/symfony)

## Written by

[Emily Kauffman](https://hashnode.com/@kauffmanes)

@kauffmanes · Pittsburgh, USA

  
[View profile](https://hashnode.com/@kauffmanes)

A software engineer living in Pittsburgh

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
