Replies: 1 comment 2 replies
-
If the module exists try changing it to "./../../components/layout"; I experienced a similar problem a few days ago, but found that prefixing "./" to the import url solved this. FYI, "./" references the current directory. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, i'm new at NextJS so i'm taking the simple Blog tutorial.
As i reach this step: https://nextjs.org/learn/basics/assets-metadata-css/layout-component
i'm facing this issue here:
./pages/posts/first-post.js
Module not found: Can't resolve '../../components/layout' (...)
Already tried different approaches on how to write the path, but nothing solved the problem and i can't move on the tutorial.
Could you help?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions