Cannot find module __bundle_analysis.json
Closed this issue · 3 comments
isaachinman commented
Thanks @jescalan for this fantastic project!
Trying to get up and running here, and hitting this error:
> npx nextjs-bundle-analysis generate
Cannot find module '~/my-project/.next/analyze/__bundle_analysis.json'
Require stack:
- ~/.npm/_npx/38403/lib/node_modules/nextjs-bundle-analysis/compare.js
I think we'll need to conditionally require
here. Thoughts?
jescalan commented
Got to testing it before I did! I'll have this patched for sure, though the error makes no sense at all to me since it comes from an entirely different script 🤔
jescalan commented
oh wow npx just runs all executables 🤦
jescalan commented
Ok this one is resolved in the latest release