I don’t see @remix-run/dev
in your devDependencies
. However, I came across Remix’s changelog referring to this – it looks like a fix was made: changelog#v241.
“avoid issues where
@remix-run/dev
could be inadvertently required in your server’s production dependencies”
Could you make sure you’re using @remix-run/dev@2.4.1
or greater in your devDependencies
? Otherwise, without seeing the codebase itself, it will be quite challenging to determine what’s causing this error to crop up during deployment.