-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: privateMap.get is not a function
#301
Comments
@mertyildiran thanks for reporting! In reference to our previous discussion regarding the recent issue, I have not yet been able to reproduce this error. Could you please confirm whether this issue originates specifically from the Descope SDK code? few questions:
|
I have opened the reproducing PR: asafshen/descope-react-in-docker#1 |
Looking at the unminified compiled JavaScript code: import { __awaiter as t, __classPrivateFieldGet as e, __classPrivateFieldSet as i } from "tslib";
...
class Lt extends HTMLElement {
constructor(o) {
super(),
B.add(this),
G.set(this, !1),
J.set(this, new F()),
Q.set(this, new F()),
(this.nextRequestStatus = new F({ isLoading: !1 })),
X.set(this, void 0),
Y.set(this, { popstate: e(this, B, "m", nt).bind(this) }),
Z.set(this, void 0),
lt.set(
this,
W(() =>
t(this, void 0, void 0, function* () {
const t = O(this.projectId, "config.json");
try {
const { body: e, headers: i } = yield E(t, "json");
return { projectConfig: e, executionContext: { geo: i["x-geo"] } };
} catch (t) {
this.logger.error("Cannot get config file", "make sure that your projectId & flowId are correct");
}
return {};
})
)
),
(this.logger = {
error: (t, i = "") => {
console.error(t, i, new Error()), e(this, B, "m", vt).call(this, t, i);
},
info: (t, e = "") => {
console.log(t, e);
},
}),
i(this, Z, o, "f"),
e(this, B, "m", tt).call(this);
} Since the error is thrown while creating a new instance of |
@mertyildiran, thank you for providing detailed information and for the reproduction PR. 🚀 I will proceed with checking it |
@mertyildiran we have found the root cause of the issue our internal packages are missing We are working on a fix, but in the meantime, you can add the latest tslib as a dependency - and run the project again
I have added a PR to the sample repo to demonstrate the temporary solution |
## Related Issues descope/react-sdk#301 ## Description Add tslib dep
The issue is now fixed and avaialble in the latest next version ( an GA version will be avaialble soon |
@descope/react-sdk
version:1.0.4
Error happens even running locally.
The text was updated successfully, but these errors were encountered: