Everything is working flawlessly in my nextjs development setup. The build process goes smoothly without any issues. However, when attempting to serve the production locally, an error pops up saying: "Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined."
I believe this may be due to a confusion with named imports within our large application. Is there a way to debug production locally given the scale of the project?
I have already referred to the documentation on using NODE_OPTIONS='--inspect' but seeking additional advice.
Thank you!