Bump antd from 5.17.0 to 5.17.1 #365
Annotations
4 errors and 1 warning
src/Graph/__tests__/Download.test.tsx:
src/Graph/Download.tsx#L3
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/Graph/Download.tsx:3:31
❯ src/Graph/__tests__/Download.test.tsx:5:31
Caused by: SyntaxError: Cannot use import statement outside a module
❯ Object.<anonymous> node_modules/antd/lib/alert/Alert.js:18:13
Module /home/runner/work/dash.adoptium.net/dash.adoptium.net/node_modules/rc-util/es/ref.js:1 seems to be an ES Module but shipped in a CommonJS package. You might want to create an issue to the package "rc-util" asking them to ship the file in .mjs extension or add "type": "module" in their package.json.
As a temporary workaround you can try to inline the package by updating your config:
// vitest.config.js
export default {
test: {
server: {
deps: {
inline: [
"rc-util"
]
}
}
}
}
|
src/Graph/__tests__/Trends.test.tsx:
src/Graph/Trends.tsx#L7
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/Graph/Trends.tsx:7:31
❯ src/Graph/__tests__/Trends.test.tsx:5:31
Caused by: SyntaxError: Cannot use import statement outside a module
❯ Object.<anonymous> node_modules/antd/lib/alert/Alert.js:18:13
Module /home/runner/work/dash.adoptium.net/dash.adoptium.net/node_modules/rc-util/es/ref.js:1 seems to be an ES Module but shipped in a CommonJS package. You might want to create an issue to the package "rc-util" asking them to ship the file in .mjs extension or add "type": "module" in their package.json.
As a temporary workaround you can try to inline the package by updating your config:
// vitest.config.js
export default {
test: {
server: {
deps: {
inline: [
"rc-util"
]
}
}
}
}
|
src/Components/NavigationMenu/__tests__/index.test.tsx:
src/Components/NavigationMenu/index.tsx#L3
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/Components/NavigationMenu/index.tsx:3:31
❯ src/Components/NavigationMenu/__tests__/index.test.tsx:4:31
Caused by: SyntaxError: Cannot use import statement outside a module
❯ Object.<anonymous> node_modules/antd/lib/alert/Alert.js:18:13
Module /home/runner/work/dash.adoptium.net/dash.adoptium.net/node_modules/rc-util/es/ref.js:1 seems to be an ES Module but shipped in a CommonJS package. You might want to create an issue to the package "rc-util" asking them to ship the file in .mjs extension or add "type": "module" in their package.json.
As a temporary workaround you can try to inline the package by updating your config:
// vitest.config.js
export default {
test: {
server: {
deps: {
inline: [
"rc-util"
]
}
}
}
}
|
Run CI
Process completed with exit code 1.
|
Run CI
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|