now build error with 'babel-plugin-module-resolve' #12599
-
Hi guys, Is anybody else experiencing an issue with using babel-plugin-module-resolver on zeit/now? getting this error: Running This is the specific module on pages/[id]/settings: {
"root": ["./"],
"alias": {
"components": "./components",
"contexts": "./contexts",
"hooks": "./hooks",
"hoc": "./hoc",
"lib": "./lib",
"layout": "./layout",
"mutations": "./mutations",
"queries": "./queries"
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use https://nextjs.org/docs/advanced-features/module-path-aliases instead which is already landed on stable. |
Beta Was this translation helpful? Give feedback.
You can use https://nextjs.org/docs/advanced-features/module-path-aliases instead which is already landed on stable.
Main benefit of the approach in the docs is that it also integrates with your editor.