Closed DominikIlski closed 2 years ago
Looking at your error, this could be a problem with webpack and just surfacing from my plugin.
could you try to just use webpack.DefinePlugin
Directly to see if that causes the bug to present itself?
Closing due to lack of participation and cannot reproduce.
Feel free to reopen this if you can provide more details, thanks.
Hey, I facing the same issue, and I tried to apply the solution but isn't working; returned the same error message;
I have another project with the same configurations files and package versions they working fine;
Something is wrong with valueCacheVersions
initialization or set, in my case when I initialize the compilation.valueCacheVersions
at DefinePlugin.js l:343 the issue is solved;
i just do something like: compilation.valueCacheVersions ||= new Map();
@mrsteele can you help me?
Can you try using only DefinePlugin? It could be related to your implementation.
Steps to reproduce:
wrangler publish
My use case of this package is: I have a process in CD that generates some data. I can save this data to a file. After that, I want to read this data, put it into a worker using the plugin. (still in CD process) After that, I want to use this data during execution time. Error:
My code structure:
My webpack config:
I will be glad to provide more info on this topic.