[当我执行npm run build
时,出现以下错误。
./pages/_app.js
Module not found: Can't resolve '../components/Nav/Nav' in '/home/webuser/node_site/document/pages'
components
和Nav
文件夹在正确的位置。另外Nav.js
文件也在那里。我也尝试过../components/Nav/Nav.js
仍未找到模块。
节点的版本为12.16.2npm版本6.14.4
components/nav/Nav
,代码为../components/Nav/Nav
,在Mac上编译就很好。一旦我将代码更改为../components/nav/Nav
,一切正常。