While deploying my static nextjs app from cloudfare (stored on github),I am facing this issue and deployment fail multiple time. i have tried changing node version (14,15,16) but still facing this issue.
here it is saying image is not defined but actualy i am not using <Image>
i am using <img>
error mesage
12:01:35.564 > Build error occurred
12:01:35.566 ReferenceError: images is not defined
12:01:35.566 at Object.<anonymous> (/opt/buildhome/repo/next.config.js:7:1)
12:01:35.566 at Module._compile (node:internal/modules/cjs/loader:1103:14)
12:01:35.566 at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
12:01:35.567 at Module.load (node:internal/modules/cjs/loader:981:32)
12:01:35.567 at Function.Module._load (node:internal/modules/cjs/loader:822:12)
12:01:35.567 at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:168:29)
12:01:35.567 at ModuleJob.run (node:internal/modules/esm/module_job:197:25)
12:01:35.567 at async Promise.all (index 0)
12:01:35.567 at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
12:01:35.567 at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
12:01:35.577 Failed: build command exited with code: 1
12:01:36.458 Failed: an internal error occurred