79099404

Date: 2024-10-17 18:32:47
Score: 8.5 🚩
Natty: 4
Report link

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.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): please let me know
  • RegEx Blacklisted phrase (3): Thanks in advance
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm having a similar issue
  • Low reputation (1):
Posted by: Miguel Moreno Carrillo