Closed hangjit-domain closed 4 years ago
Can you create a minimal repository that exhibits the issue with install + build + error reproduction steps? I can then dig into that with a windows VM...
I can't seem to replicate it on a separate repo. Is there a way I can turn on extra logging to see what's going on?
You can remove emitHandler: undefined,
to get more output. How long have you waited for the process to complete?
And, worst case, you can start inserting console.log
in npm-installed node_modules/inspectpack
and see if things are progressing...
I am curious as to why Mac works and Windows doesn't. The only thing offhand I've noticed is windows fs access through Node is often much slower than unix/mac...
I've left it running overnight but still no good.
We've resorted to disabling it on windows.
Can you share your webpack config?
And have you had any luck with a minimal reproduction that I could dig into?
Off hand I’m wondering if there’s something about a really large number of dependencies on windows in node_modules...
Alternately, if you can't get a minimal reproduction, can you get me a sanitized stats object JSON dump? (Removing all of your actual sources which presumably are private)
This would be enormously useful to either identify an issue or isolate it to something in reading from node_modules
in the versions
action (which is the only thing not simulatable from a stats object).
You can create a full stats object with something like:
const { StatsWriterPlugin } = require("webpack-stats-plugin");
module.exports = {
// ...
plugins: [
new StatsWriterPlugin({
fields: ["assets", "modules"]
})
]
};
in your webpack config, and go through and manually replace all of the "source":
field values containing actual source with say: console.log('REMOVED');
or something... That would similarly give us enough to debug further.
For a helpful reference, we were able to diagnose an issue with a community members sanitized stats object here: https://github.com/FormidableLabs/inspectpack/issues/110
Thanks!
Looks like someone on the team ended up removing it as we were conditionally enabling it for Mac users only.
I suppose you can close this topic now.
I have the following setup.
I'm running
npx webpack
which gives me the following output and doesn't progress further.I've tried the command across cmd, bash and powershell (in Admin mode) but it doesn't seem to make any difference.
It works on Mac.
Also, when I get rid of below, it works just fine.
I'm not even getting any log output on the console so it's stumping me.
Webpack version - 4.32.2 NPM version - 6.4.1 OS - Windows 10