Next.js Discord

Discord Forum

modules load strange behaviour

Unanswered
Checkered Giant posted this in #help-forum
Open in Discord
Checkered GiantOP
I've faced here very strange situation with modules load. During build it was failing with message that module could not be located. Like "Module not found: Can't resolve 'ieee754'". After some time banging my head against the wall I found that it was trying to import it from one level up from project (it's monorepo with some few git repos checked inside main). And there apperared node_modules folder with dev tools. So after deleting node_modules from upper level everything started to build properly again. So my question sounds like - is it next.js specific or general node.js modules import behaviour or where it sourced from? Any suggestions and ideas please.

0 Replies