I have been working on website for 3 weeks now, and I am way pass the deadline. I have been stuck with one error for 2 weeks. If anyone has seen this before and has a answer, it would help me lot, I have already seen this [post](https://answers.netlify.com/t/error-loading-images-on-deployed-site-runtime-importmoduleerror-error-cannot-find-module-utils/69526) error loading images on deployed site runtime, basically you could make a argument that the images I have on the website are too big I will be moving that CDN or make them smaller somehow.
I really don’t think it s the images, its something to do with Serverless function and its folder structure. Here’s the really error.
And the Function Log outputs the same
Aug 21, 12:27:06 PM: 2022-08-21T16:27:06.179Z undefined ERROR Uncaught Exception {"errorType":"Runtime.ImportModuleError","errorMessage":"Error: Cannot find module '..\\..\\lib\\auth'\nRequire stack:\n- /var/task/api/dist/directives/requireAuth/requireAuth.js\n- /var/task/api/dist/functions/graphql.js\n- /var/task/graphql.js\n- /var/runtime/index.mjs","stack":["Runtime.ImportModuleError: Error: Cannot find module '..\\..\\lib\\auth'","Require stack:","- /var/task/api/dist/directives/requireAuth/requireAuth.js","- /var/task/api/dist/functions/graphql.js","- /var/task/graphql.js","- /var/runtime/index.mjs"," at _loadUserApp (file:///var/runtime/index.mjs:726:17)"," at async Object.module.exports.load (file:///var/runtime/index.mjs:741:21)"," at async file:///var/runtime/index.mjs:781:15"," at async file:///var/runtime/index.mjs:4:1"]}
Aug 21, 12:27:08 PM: 2022-08-21T16:27:08.412Z undefined ERROR Uncaught Exception {"errorType":"Runtime.ImportModuleError","errorMessage":"Error: Cannot find module '..\\..\\lib\\auth'\nRequire stack:\n- /var/task/api/dist/directives/requireAuth/requireAuth.js\n- /var/task/api/dist/functions/graphql.js\n- /var/task/graphql.js\n- /var/runtime/index.mjs","stack":["Runtime.ImportModuleError: Error: Cannot find module '..\\..\\lib\\auth'","Require stack:","- /var/task/api/dist/directives/requireAuth/requireAuth.js","- /var/task/api/dist/functions/graphql.js","- /var/task/graphql.js","- /var/runtime/index.mjs"," at _loadUserApp (file:///var/runtime/index.mjs:726:17)"," at async Object.module.exports.load (file:///var/runtime/index.mjs:741:21)"," at async file:///var/runtime/index.mjs:781:15"," at async file:///var/runtime/index.mjs:4:1"]}
Aug 21, 12:27:08 PM: 619d13cc Duration: 2272.38 ms Memory Usage: 95 MB Aug 21, 12:27:08 PM: Unknown application error occurred
Runtime.ImportModuleError
Aug 21, 12:27:09 PM: 2022-08-21T16:27:09.954Z undefined ERROR Uncaught Exception {"errorType":"Runtime.ImportModuleError","errorMessage":"Error: Cannot find module '..\\..\\lib\\auth'\nRequire stack:\n- /var/task/api/dist/directives/requireAuth/requireAuth.js\n- /var/task/api/dist/functions/graphql.js\n- /var/task/graphql.js\n- /var/runtime/index.mjs","stack":["Runtime.ImportModuleError: Error: Cannot find module '..\\..\\lib\\auth'","Require stack:","- /var/task/api/dist/directives/requireAuth/requireAuth.js","- /var/task/api/dist/functions/graphql.js","- /var/task/graphql.js","- /var/runtime/index.mjs"," at _loadUserApp (file:///var/runtime/index.mjs:726:17)"," at async Object.module.exports.load (file:///var/runtime/index.mjs:741:21)"," at async file:///var/runtime/index.mjs:781:15"," at async file:///var/runtime/index.mjs:4:1"]}
this is my netlify.toml file
[build]
command = "yarn rw deploy netlify"
publish = "web/dist"
# base = "trashremover"
functions = "api/dist/functions"
included_files = ["api/dist/**/*.js"]
# included_files = ["api/dist/lib/*"]
[dev]
# To use [Netlify Dev](https://www.netlify.com/products/dev/),
# install netlify-cli from https://docs.netlify.com/cli/get-started/#installation
# and then use netlify link https://docs.netlify.com/cli/get-started/#link-and-unlink-sites
# to connect your local project to a site already on Netlify
# then run netlify dev and our app will be accessible on the port specified below
framework = "redwoodjs"
# Set targetPort to the [web] side port as defined in redwood.toml
targetPort = 8910
# Point your browser to this port to access your RedwoodJS app
port = 8888
[[redirects]]
from = "/*"
to = "/200.html"
status = 200



