After webpack 5 migration not able to use local packages in a mono repo #18211
Replies: 2 comments 2 replies
-
Please provide it, also pleas run |
Beta Was this translation helpful? Give feedback.
0 replies
-
i am exporting initWithConfiguration method from packageA. yarn list webpack:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug report
I have a mono repo (using lerna + yarn) with 2 packages, each having their own webpack configurations. And i am using packageA on the packageB.
And recently i have updated my webpack version,
from "webpack": "^4.41.0", "webpack-cli": "^3.3.9"
to "webpack": "^5.90.3", "webpack-cli": "^5.1.4",
I am able to install and build the projects separately without any issues. But when i try to import anything from packageA in my packageB, it's returning undefined error. And it was working fine in webpack 4.
I can't give link the repo here as it is very big. Am i missing any configuration on the migration process.
Other relevant information:
Node.js version: 20
Beta Was this translation helpful? Give feedback.
All reactions