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
importtype{Configuration}from'webpack-dev-server'constapiPrefixes: string[]=['/api/']constdevServerOptions: Configuration={proxy: [{// TS2322: Type '{ context: string[]; target: string; }' is not assignable to type 'Options'.// Object literal may only specify known properties, and 'context' does not exist in type 'Options'.context: apiPrefixes,target : '',},],}
Please paste the results of npx webpack-cli info here, and mention other relevant information
Bug report
In the bundled type delcaration file "types/lib/Server.d.ts", type
ProxyConfigArray
is defined to not an array but what its item should be.Actual Behavior
Expected Behavior
Below codes are modified base on
@types/webpack-dev-server
codes:How Do We Reproduce?
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationNot using webpack-cli.
using [email protected]
using [email protected]
The text was updated successfully, but these errors were encountered: