mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-23 11:38:48 +02:00
chore: migrate Jest and website to SWC (#6944)
* chore: migrate Jest and website to SWC * ignore template
This commit is contained in:
parent
53f152c42d
commit
19942f990a
9 changed files with 134 additions and 186 deletions
|
@ -47,7 +47,8 @@ export class ReactContextError extends Error {
|
|||
super();
|
||||
this.name = 'ReactContextError';
|
||||
this.message = `Hook ${
|
||||
this.stack?.split('\n')[1]?.match(/at (?<name>\w+)/)?.groups!.name
|
||||
this.stack?.split('\n')[1]?.match(/at (?:\w+\.)?(?<name>\w+)/)?.groups!
|
||||
.name
|
||||
} is called outside the <${providerName}>. ${additionalInfo || ''}`;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue