diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index aa3a30a6f4..43886323a7 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -298,7 +298,7 @@ class App { this.app.use((req: express.Request, res: express.Response, next: express.NextFunction) => { (req as ICustomRequest).parsedUrl = parseUrl(req); // @ts-ignore - req.rawBody = new Buffer('', 'base64'); + req.rawBody = Buffer.from('', 'base64'); next(); });