I'm having a similar issue, but is kinda weird. I´m getting:
⨯ external "react-hook-form"
The target environment doesn't support dynamic import() syntax so it's not possible to use external type 'module' within a script
But the thing is that "react-hook-form" is not external, is actually in my node_modules, I'm using it like this:
import { Controller, useForm, ValidationRule } from 'react-hook-form';
I'm using NextJS 14, Module Federation NextJs-MF 8.5.4
I've struggling with this for a week or more, if someone has an idea please let me know. Thanks in advance.