0👍
✅
If you wind up dealing with something similar, fs
or fs-extra
are your culprits. You can’t use file operations on the client side, which is when these middleware actions are happening (I think). The cookie notice only fully worked when I removed the fs-extra
import at the very top of the middleware file.
Source:stackexchange.com