Skip to content

Failed to build this project. #29

Open
@villivateur

Description

@villivateur

I use node v22.14.0 and Ubuntu 20.04
The build failed with:

$ yarn build
yarn run v1.22.17
$ nuxt build
Nuxt 3.16.2 with Nitro 2.11.8                                                                                                                                                                  nuxi  11:08:12 AM
ℹ Using default Tailwind CSS file                                                                                                                                                  nuxt:tailwindcss 11:08:13 AM

[@nuxt/content 11:08:14 AM]  WARN  No content configuration found, falling back to default collection. In order to have full control over your collections, create the config file in project root. See: https://content.nuxt.com/docs/getting-started/installation

✔ Processed 2 collections and 1 files in 172.87ms (0 cached, 1 parsed)                                                                                                                @nuxt/content 11:08:15 AM
ℹ Nuxt Icon server bundle mode is set to local                                                                                                                                                      11:08:15 AM
ℹ Building for Nitro preset: node-server                                                                                                                                                      nuxi  11:08:15 AM
ℹ Building client...                                                                                                                                                                                11:08:17 AM
ℹ vite v6.2.5 building for production...                                                                                                                                                            11:08:17 AM
deploy-files/upload.ts:37:43 - error TS2345: Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BlobInput'.
  Type 'Buffer<ArrayBufferLike>' is missing the following properties from type 'ArrayBuffer': maxByteLength, resizable, resize, detached, and 2 more.

37             await bootloaderStore.set(bl, file);
                                             ~~~~

server/api/files.ts:61:25 - error TS2322: Type 'StorageValue' is not assignable to type 'string | null'.
  Type 'number' is not assignable to type 'string'.

61                         value: await releasesCache.getItem(key)
                           ~~~~~

  server/api/files.ts:56:21
    56                     value: string | null
                           ~~~~~
    The expected type comes from property 'value' which is declared here on type '{ key: string; value: string | null; }'

server/api/files.ts:140:25 - error TS2322: Type 'StorageValue' is not assignable to type 'string | null'.
  Type 'number' is not assignable to type 'string'.

140                         value: await bootloadersCache.getItem(key)
                            ~~~~~

  server/api/files.ts:135:21
    135                     value: string | null
                            ~~~~~
    The expected type comes from property 'value' which is declared here on type '{ key: string; value: string | null; }'

server/api/files.ts:217:25 - error TS2322: Type 'StorageValue' is not assignable to type 'string | null'.
  Type 'number' is not assignable to type 'string'.

217                         value: await toolsCache.getItem(key)
                            ~~~~~

  server/api/files.ts:212:21
    212                     value: string | null
                            ~~~~~
    The expected type comes from property 'value' which is declared here on type '{ key: string; value: string | null; }'

src/communication/commands.queue.ts:54:49 - error TS2769: No overload matches this call.
  Overload 1 of 2, '(input?: AllowSharedBufferSource | undefined, options?: TextDecodeOptions | undefined): string', gave the following error.
    Argument of type 'ArrayBufferLike' is not assignable to parameter of type 'AllowSharedBufferSource | undefined'.
      Type 'SharedArrayBuffer' is not assignable to type 'AllowSharedBufferSource | undefined'.
        Type 'SharedArrayBuffer' is missing the following properties from type 'ArrayBuffer': resizable, resize, detached, transfer, transferToFixedLength
  Overload 2 of 2, '(input?: AllowSharedBufferSource | undefined, options?: TextDecodeOptions | undefined): string', gave the following error.
    Argument of type 'ArrayBufferLike' is not assignable to parameter of type 'AllowSharedBufferSource | undefined'.
      Type 'SharedArrayBuffer' is not assignable to type 'AllowSharedBufferSource | undefined'.
        Type 'SharedArrayBuffer' is missing the following properties from type 'ArrayBuffer': resizable, resize, detached, transfer, transferToFixedLength

54         const fcType = new TextDecoder().decode(data.buffer);
                                                   ~~~~~~~~~~~



Found 5 errors in 3 files.

Errors  Files
     1  deploy-files/upload.ts:37
     3  server/api/files.ts:61
     1  src/communication/commands.queue.ts:54
ℹ ✓ 616 modules transformed.                                                                                                                                                                        11:08:27 AM
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Did I have the wrong environment?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions