Closed kmcaloon closed 4 years ago
Please follow the issue template.
https://github.com/zeit/next.js/issues/new/choose
https://github.com/zeit/next.js/issues/new?template=8.Question_about_next.md
# Question about Next.js
GitHub Issues are reserved for Bug reports and Feature requests. The best place to get your question answered is to post it on https://spectrum.chat/next-js.
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
So I am having a couple bugs/issues.
For this, all pages when running in
dev
are compiling ok. I am getting build errors telling me that a variable is not defined but doesn't specify where exactly.Here is the error I am getting running
next build
withtarget: severless
:The thing is, it doesn't really specify where exactly the undefined variable is in my actual code.
For what it's worth, here is my actual
[slug].js
code:Here is the error I am getting running
next build
without the serverless option:Is there any way I can improve these messages for better debugging?