You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm deploying a NextJS app to an Azure App Service, but after it deploys successfully, I get the following error message.
Tue Aug 17 2021 20:30:04 GMT+0000 (Coordinated Universal Time): Application has thrown an uncaught exception and is terminated:
SyntaxError: Unexpected token {
at Module._compile (module.js:434:25)
at Object..js (module.js:464:10)
at Module.load (module.js:353:31)
at Function._load (module.js:311:12)
at Module.require (module.js:359:17)
at require (module.js:375:17)
at Object.<anonymous> (D:\Program Files\iisnode\interceptor.js:459:1)
at Module._compile (module.js:446:26)
at Object..js (module.js:464:10)
at Module.load (module.js:353:31)
It shows up every time the page loads, and the page instantly just gives a 500 errror. Any ideas on what could be going wrong?
WEBSITE_NODE_DEFAULT_VALUE=14-lts
The text was updated successfully, but these errors were encountered:
The current version of iisnode does not support ES6 Modules syntax, so such issues cannot easily fix. You should switch to an alternative. Read Azure#146 to learn more.
I'm deploying a NextJS app to an Azure App Service, but after it deploys successfully, I get the following error message.
It shows up every time the page loads, and the page instantly just gives a 500 errror. Any ideas on what could be going wrong?
The text was updated successfully, but these errors were encountered: