Skip to content

Replace CreateReactApp with Vite #371

Replace CreateReactApp with Vite

Replace CreateReactApp with Vite #371

Triggered via pull request June 25, 2024 01:14
@chacha912chacha912
synchronize #153
vite
Status Failure
Total duration 1m 35s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 4 warnings
src/features/documents/documentSlice.spec.ts: src/api/yorkie/v1/admin_connect.js#L24
Error: require() of ES Module /home/runner/work/dashboard/dashboard/src/api/yorkie/v1/admin_pb.js from /home/runner/work/dashboard/dashboard/src/api/yorkie/v1/admin_connect.js not supported. admin_pb.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules. Instead either rename admin_pb.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/dashboard/dashboard/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead). ❯ src/api/yorkie/v1/admin_connect.js:24:530 ❯ async /home/runner/work/dashboard/dashboard/src/api/index.ts:5:31 ❯ async /home/runner/work/dashboard/dashboard/src/features/documents/documentsSlice.ts:3:31 ❯ async /home/runner/work/dashboard/dashboard/src/features/documents/documentSlice.spec.ts:2:31 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_REQUIRE_ESM' }
build
Process completed with exit code 1.
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2.3.1, actions/setup-node@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2.3.1, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/