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
Attempted to run npm run build:local from ProjectName/ui
An internal error occurred.
[vite-ssg] Please report an issue, if none already exists: https://github.com/antfu/vite-ssg/issues
~\ProjectName\ui\node_modules@servicestack\client\dist\index.js:631
this.headers = new Headers();
^
ReferenceError: Headers is not defined
at new JsonServiceClient (~\ProjectName\ui\node_modules@servicestack\client\dist\index.js:631:28)
let headers = new Headers(); headers.set("Content-Type", "text/plain");
Since it is a node-module, adjusting locally would be pointless. After some searching, the typical solution for this is to populate the Headers object with a prior await fetch.Headers( )
Describe the bug
Attempted to run npm run build:local from ProjectName/ui
let headers = new Headers(); headers.set("Content-Type", "text/plain");
Since it is a node-module, adjusting locally would be pointless. After some searching, the typical solution for this is to populate the Headers object with a prior
await fetch.Headers( )
Reproduction
Follow the steps located at https://vue-ssg.jamstacks.net/, and attempt to build. All other steps run fine.
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: