Closed quadsurf closed 4 years ago
I'm on NextJs 9.3.4 so I'm not using /static nor /public/static
steps to reproduce...
Failed to compile ./pages/index.jsx Module not found: Can't resolve './test-image.jpg' in '/Users/home/projects/next-apps/project1/src/pages'
Failed to compile
./pages/index.jsx
Module not found: Can't resolve './test-image.jpg' in '/Users/home/projects/next-apps/project1/src/pages'
This could be the problem... if you look at the path above, it's resolving to the /pages sub-dir instead of the /public folder.
DO I NEED WEBPACK LOADERS??? Your docs did not say I needed it.
do you add to next.config.js
withImages({your config})
?
I'm on NextJs 9.3.4 so I'm not using /static nor /public/static
steps to reproduce...
Failed to compile
./pages/index.jsx
Module not found: Can't resolve './test-image.jpg' in '/Users/home/projects/next-apps/project1/src/pages'
This could be the problem... if you look at the path above, it's resolving to the /pages sub-dir instead of the /public folder.
DO I NEED WEBPACK LOADERS??? Your docs did not say I needed it.