Closed joverlee521 closed 1 year ago
Prior to this commit, I was unable to load any individual Group page after starting the dev server with npm run dev. I would get the error:
npm run dev
TypeError: (intermediate value).createProxyServer is not a function
Since http-proxy only has a default export¹, so we must access the default property of the module in order to access the createProxyServer method.
http-proxy
default
createProxyServer
¹ https://github.com/http-party/node-http-proxy/blob/master/index.js#L13
Follow up of #583
/groups/blab
Description of proposed changes
Prior to this commit, I was unable to load any individual Group page after starting the dev server with
npm run dev
. I would get the error:Since
http-proxy
only has a default export¹, so we must access thedefault
property of the module in order to access thecreateProxyServer
method.¹ https://github.com/http-party/node-http-proxy/blob/master/index.js#L13
Related issue(s)
Follow up of #583
Testing
npm run dev
then successfully loaded an individual Groups page (/groups/blab
)