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 am willing to submit a pull request for this issue.
The text was updated successfully, but these errors were encountered:
mhdcodes
changed the title
Regression: Error: [@astrojs/node] Setting the 'mode' option is required.
Regression: Error [@astrojs/node] Setting the 'mode' option is required.
Nov 16, 2022
Hi @the-dijkstra, this became a required field in @astrojs/node version 2.0.0, a major version changed, so this is not a regression. See this release PR: #5046
Note that if you want the old behavior just set the mode to middleware: nodejs({ mode: 'middleware' })
What version of
astro
are you using?v1.6.9
Are you using an SSR adapter? If so, which one?
Node
What package manager are you using?
npm
What operating system are you using?
Linux
Describe the Bug
@astrojs/node/dist/index.js:12:11 @astro-app:build: Code: @astro-app:build: 11 | if (!(userOptions == null ? void 0 : userOptions.mode)) { @astro-app:build: > 12 | throw new Error(`[@astrojs/node] Setting the 'mode' option is required.`); @astro-app:build: | ^ @astro-app:build: 13 | } @astro-app:build: 14 | let needsBuildConfig = false; @astro-app:build: 15 | let _options;
Link to Minimal Reproducible Example
https://github.com/codiume/orbit/actions/runs/3483931326/jobs/5827944357
Participation
The text was updated successfully, but these errors were encountered: