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
This code is situated in the entry point of my app.
Here is my webpack configuration:
constpath=require("path");module.exports={mode: "development",devtool: "inline-source-map",entry: "./src/renderer/index.ts",output: {filename: "./dist/renderer.bundle.js",libraryTarget: "window"},resolve: {// Add `.ts` and `.tsx` as a resolvable extension.extensions: [".ts",".tsx",".js"]},module: {rules: [// all files with a `.ts` or `.tsx` extension will be handled by `ts-loader`{test: /\.tsx?$/,include: path.resolve(__dirname,'src'),loader: "ts-loader"}]},target: "electron-renderer"};
Checklist
I have read the documentation.
I have tried my code with the latest version of Node.js and Got.
EDIT:
The issue where the payload is sent as [object Object] is actually not a problem with got but with a library I was using. Sorry for the confusion.
The text was updated successfully, but these errors were encountered:
Describe the bug
I want to bundle my electron app with webpack to reduce the package size and to improve performance. However, got appears to not work with webpack.
Actual behavior
When I get the body of a request, I get tons of Unicode characters which do not mean anything:
(This is only part of it)
There also seems to be another error where the payload of a POST request is sent as(See edit at end)[object Object]
.Expected behavior
I should get the response from the server
Code to reproduce
This code is situated in the entry point of my app.
Here is my webpack configuration:
Checklist
EDIT:
[object Object]
is actually not a problem with got but with a library I was using. Sorry for the confusion.The text was updated successfully, but these errors were encountered: