-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Migrating to 5.0.0 : Can't resolve 'async_hooks' #8375
Comments
I'm not able to recreate the issue as described. Please provide all code necessary to recreate the issue. Code I ran The code below runs fine without any webpack errors during
import { ManagementClient } from 'auth0';
export class Auth0Service extends RequestService {
private auth0!: ManagementClient;
public constructor() {
super();
this.getToken();
}
private getToken() {
this.auth0 = new ManagementClient(AUTH);
}
}
{
"devDependencies": {
"auth0": "^2.27.1",
"cypress": "5.0.0",
"typescript": "^4.0.2"
}
}
|
I reproduce with this tsconfig.json in the cypress directory
Not sure why I have this baseUrl option but it works with cypress 4.12.1 |
Yeah, I'm not exactly sure what I changed since I last ran this, but I am able to recreate this now. Maybe I was running in the older version accidentally.
import { ManagementClient } from 'auth0';
export class Auth0Service extends RequestService {
private auth0!: ManagementClient;
public constructor() {
super();
this.getToken();
}
private getToken() {
this.auth0 = new ManagementClient(AUTH);
}
}
{
"devDependencies": {
"auth0": "^2.27.1",
"cypress": "5.0.0",
"typescript": "^4.0.2"
}
} This specific error actually appears to be fixed in our next release already, but when running in our next release, there's this error thrown with the code above, which seems legitimate since this is not defined. Closing as this is pending release. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
I'm just migrating from 4.12.1 where all works to 5.0.0
Current behavior:
The test doesn't start and an error message is displayed
Test code to reproduce
We use auth0 api, if i comment this lines the test works:
Versions
Cypress: 5.0.0
OS: macOS Catalina 10.15.6
Chrome: 84.0.4147.135
Node: 12.16.2
The text was updated successfully, but these errors were encountered: