Closed srdjan closed 3 years ago
Looks like the canary builds of nextjs
inline webpack as a dependency. Therefore it won't show up in node_modules
anymore.
Downgrading next to the latest stable build works fine.
@JoviDeCroock can you transfer this issue to the prefresh
repo?
yeah, thanks. alternatively installing webpack (at least while this gets sorted) works ...
Re-opening because it should work by default without additional user interactions.
@JoviDeCroock do you already have a plan how to mitigate this in @prefresh/next
? I think we should check whether the required webpack utils are part of nextjs' bundled webpack distro and use them instead of importing webpack (if available)
Hmm, does next export the utils?
This seems to be fixed with the recently released next@10.0.8
, can someone else verify?
confirming that next@10.0.8 fixes this issue
since I opened it - I'll close it :)
Cool, however mind that Next 10.0.8 has trouble with .env
files: https://github.com/vercel/next.js/pull/22879 – if you need that, it should be fixed in canary.
Reproduction
https://github.com/srdjan/next-repros
Steps to reproduce
Expected Behavior
successful build
Actual Behavior