require.resolve(…) takes a second optional options argument, instead of a second optional parent string argument.
This differs from what's been implemented in #31032.
import.meta.resolve(…) and require.resolve(…) should both take a string and an options object, instead of one taking two strings and the other taking a string and an options object.
/cc @guybedford