Skip to content

Convert to TypeScript #20

Convert to TypeScript

Convert to TypeScript #20

Triggered via pull request September 6, 2024 10:51
Status Failure
Total duration 27s
Artifacts

ci.yml

on: pull_request
Matrix: vitest
Fit to window
Zoom out
Zoom in

Annotations

21 errors
test/unit/mock-http.test.ts: test/unit/mock-http.test.ts#L3
SyntaxError: Cannot use import statement outside a module ❯ test/unit/mock-http.test.ts:3:22 Module /home/runner/work/node-sdk/node-sdk/src/Transloadit.ts:1 seems to be an ES Module but shipped in a CommonJS package. To fix this issue, change the file extension to .mjs or add "type": "module" in your package.json.
test/unit/test-pagination-stream.test.ts: test/unit/test-pagination-stream.test.ts#L3
SyntaxError: Cannot use import statement outside a module ❯ test/unit/test-pagination-stream.test.ts:3:27 Module /home/runner/work/node-sdk/node-sdk/src/PaginationStream.ts:1 seems to be an ES Module but shipped in a CommonJS package. To fix this issue, change the file extension to .mjs or add "type": "module" in your package.json.
test/unit/test-transloadit-client.test.ts: test/unit/test-transloadit-client.test.ts#L5
SyntaxError: Cannot use import statement outside a module ❯ test/unit/test-transloadit-client.test.ts:5:14 Module /home/runner/work/node-sdk/node-sdk/src/tus.ts:1 seems to be an ES Module but shipped in a CommonJS package. To fix this issue, change the file extension to .mjs or add "type": "module" in your package.json.
vitest (20)
Process completed with exit code 1.
vitest (18)
The job was canceled because "_20" failed.
test/unit/mock-http.test.ts: test/unit/mock-http.test.ts#L3
SyntaxError: Cannot use import statement outside a module ❯ test/unit/mock-http.test.ts:3:22 Module /home/runner/work/node-sdk/node-sdk/src/Transloadit.ts:1 seems to be an ES Module but shipped in a CommonJS package. To fix this issue, change the file extension to .mjs or add "type": "module" in your package.json.
test/unit/test-pagination-stream.test.ts: test/unit/test-pagination-stream.test.ts#L3
SyntaxError: Cannot use import statement outside a module ❯ test/unit/test-pagination-stream.test.ts:3:27 Module /home/runner/work/node-sdk/node-sdk/src/PaginationStream.ts:1 seems to be an ES Module but shipped in a CommonJS package. To fix this issue, change the file extension to .mjs or add "type": "module" in your package.json.
test/unit/test-transloadit-client.test.ts: test/unit/test-transloadit-client.test.ts#L5
SyntaxError: Cannot use import statement outside a module ❯ test/unit/test-transloadit-client.test.ts:5:14 Module /home/runner/work/node-sdk/node-sdk/src/tus.ts:1 seems to be an ES Module but shipped in a CommonJS package. To fix this issue, change the file extension to .mjs or add "type": "module" in your package.json.
vitest (18)
Process completed with exit code 1.
eslint: examples/convert_to_webp.js#L7
Unable to resolve path to module '../src/Transloadit'
eslint: examples/convert_to_webp.js#L7
Missing file extension for "../src/Transloadit"
eslint: examples/credentials.js#L8
Unable to resolve path to module '../src/Transloadit'
eslint: examples/credentials.js#L8
Missing file extension for "../src/Transloadit"
eslint: examples/face_detect_download.js#L14
Unable to resolve path to module '../src/Transloadit'
eslint: examples/face_detect_download.js#L14
Missing file extension for "../src/Transloadit"
eslint: examples/fetch_costs_of_all_assemblies_in_timeframe.js#L10
Unable to resolve path to module '../src/Transloadit'
eslint: examples/fetch_costs_of_all_assemblies_in_timeframe.js#L10
Missing file extension for "../src/Transloadit"
eslint: examples/rasterize_svg_to_png.js#L7
Unable to resolve path to module '../src/Transloadit'
eslint: examples/rasterize_svg_to_png.js#L7
Missing file extension for "../src/Transloadit"
vitest (22)
The job was canceled because "_20" failed.
vitest (22)
The operation was canceled.