refactor: create @docusaurus/bundler
and @docusaurus/babel
packages
#5257
Annotations
7 errors
|
Test:
packages/docusaurus/src/webpack/__tests__/utils.test.ts#L17
TypeError: (0 , _utils.createJsLoaderFactory) is not a function
at testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:17:33)
at Object.testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:33:34)
|
Test:
packages/docusaurus/src/webpack/__tests__/utils.test.ts#L17
TypeError: (0 , _utils.createJsLoaderFactory) is not a function
at testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:17:33)
at Object.testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:43:34)
|
Test:
packages/docusaurus/src/webpack/__tests__/utils.test.ts#L17
TypeError: (0 , _utils.createJsLoaderFactory) is not a function
at testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:17:33)
at Object.testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:65:34)
|
Test:
packages/docusaurus-theme-translations/src/utils.ts#L72
Cannot find module '@docusaurus/core/lib/babel/preset' from 'packages/docusaurus-theme-translations/src/utils.ts'
at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
at resolve (packages/docusaurus-theme-translations/src/utils.ts:72:25)
at Object.<anonymous> (packages/docusaurus-theme-translations/locales/__tests__/locales.test.ts:37:7)
|
Test:
packages/docusaurus-theme-translations/src/__tests__/utils.test.ts#L15
expect(received).rejects.toThrowErrorMatchingInlineSnapshot(snapshot)
Snapshot name: `extractThemeCodeMessages throws with invalid syntax 1`
- Snapshot - 8
+ Received + 1
-
- Please make sure all theme translations are static!
- Some warnings were found!
-
- Translate content could not be extracted. It has to be a static string and use optional but static props, like <Translate id="my-id" description="my-description">text</Translate>.
- File: packages/docusaurus-theme-translations/src/__tests__/__fixtures__/theme/index.js at line 4
- Full code: <Translate>{index}</Translate>
-
+ Cannot find module '@docusaurus/core/lib/babel/preset' from 'packages/docusaurus-theme-translations/src/utils.ts'
at Object.toThrowErrorMatchingInlineSnapshot (node_modules/expect/build/index.js:218:22)
at Object.toThrowErrorMatchingInlineSnapshot (packages/docusaurus-theme-translations/src/__tests__/utils.test.ts:15:15)
|
Test
The operation was canceled.
|
Loading