build error with babel-plugin-module-resolver #4289
Unanswered
emilforsmann
asked this question in
General
Replies: 1 comment
-
FWIW, if your folders are in the root you don't need to explicitly set aliases, once you set It might be that the explicit aliases are causing issues. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
Is anybody else experiencing issue with using babel-plugin-module-resolver?
getting this error:
Module not found: Can't resolve '../../../layout/main' in '/zeit/7b754faf/pages/[id]/settings'
It's a Nextjs project and running
build
locally or runningnow dev
works like a charm.I've also tried removing package-lock.json and node_module and doing a clean build, the problem still remains.
This is the specific module on pages/[id]/settings:
import Main from 'layout/Main';
and this is how module-resolver is specified:
Beta Was this translation helpful? Give feedback.
All reactions