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
(node:816301) UnhandledPromiseRejectionWarning: TypeError: form_urlencoded_1.default is not a function
at TokenRequester.request (/home/jeff/Dropbox/Web/solid/solid-node-client/node_modules/solid-auth-fetcher/dist/login/oidc/TokenRequester.js:53:44)
This error does not occur when using form-urlencoded@4.1.4 but does occur with the latest version 4.5.1. It has something to do with how the function is exported. This change to solid-auth-fetcher's dist/* makes solid-auth-fetcher work with either version, but I can not figure out how to change it in the src/* typescript.
// Remove ths line (20) in dist/login/oidc/TokenRequester.js
Line 20 const form_urlencoded_1 = __importDefault(require("form-urlencoded"));
// Replace with these :
let form_urlencoded_1 = __importDefault(require("form-urlencoded"));
if( typeof form_urlencoded_1.default != "function" ) {
form_urlencoded_1 = form_urlencoded_1.default ;
}
The text was updated successfully, but these errors were encountered:
Login from nodejs now produces
This error does not occur when using form-urlencoded@4.1.4 but does occur with the latest version 4.5.1. It has something to do with how the function is exported. This change to solid-auth-fetcher's dist/* makes solid-auth-fetcher work with either version, but I can not figure out how to change it in the src/* typescript.
The text was updated successfully, but these errors were encountered: