Closed nooikko closed 4 years ago
Looks like I was just missing an object layer. I had:
plugins: [
new DirectoryNamedWebpackPlugin()
]
instead of:
resolve: {
plugins: [
new DirectoryNamedWebpackPlugin()
]
}
That was my suspicion and was going to ask but I was distracted and forgot. Sorry about that and glad you worked it out.
Test Repo: (replication commands in the repo) https://github.com/elijah-penney/self-built-react
Description: Upon adding
new DirectoryNamedWebpackPlugin()
to my webpack.common.js, the error immediately appears on any build that utilizes that config. Adding a config object ortrue
does not change the results of the bug.Full Error:
Versions:
I reviewed #28 which appears to have the same error but pertaining to using an older version of Webpack with Storybook. Since I'm not using Storybook, nor an older version of Webpack, the solutions in that ticket didn't resolve my issue.
Any ideas?