New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chunk's auxiliaryFiles
set contains undefined
#18102
Comments
Sounds like a bug in non official webpack plugin, we need reproducible test repo to fix a place |
As I said, I don't mind hunting it down. The error blows up in I checked the documentation but did not find a good explanation of how chunks are created in webpack. With some guidance, mainly regarding how chunks are created in webpack and what's the role of loaders in it, I could isolate the real culprit and create a reproduction. |
You can use proxy (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) on the |
excelent idea! (why didn't I thought of that?! 🤦🏻) |
Bug report
I'm so sorry I can't provide a simple reproduction. I'm using Sharetribe Web Template (which is based on create-react-app) but injecting an Astro rendered site inside it. Also, they Sharetribe customized
react-scripts
which I also had to modify to add anhtml-loader
. So, as you imagine` the whole setup is a mess.But I'm really in a hurry to deliver this project so any help or tip on how to hunt this issue down myself is really appreciated.
Also, if this turns out to be a bug in webpack, I don't mind making a PR to fix it.
The react-scripts can be found here: https://github.com/tokilabs/calligo-sharetribe-scripts/tree/master/packages/react-scripts
Some files of interest:
config/webpack.config.js
config/sharetribeWebpackConfig.js
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
This issue only happens during build, during dev (handled by
start.js
script) everything works fineThe issue is that a Chunk contains is emitted which contains an
undefined
value in theauxiliaryFiles
array. Which causes thewebpack-manifest-plugin
to throw the famousThe "path" argument must be of type string. Received undefined
error.I updated both webpack and
webpack-manifest-plugin
to the latest version and the error persists.Stack Trace
What is the expected behavior?
I believe webpack shouldn't have an
undefined
in the set ofchunk.auxiliaryFiles
Other relevant information:
webpack version: 5.90.3
Node.js version: 18.18.2
Operating System: OS X
Additional tools:
The text was updated successfully, but these errors were encountered: