← All tasks
javascriptaws/aws-sdk-js-v3 #3640Not a task: not reproduced

Compilation fails when aws-crt is not included

envgap__aws__aws-sdk-js-v3-3640

01 / FAILURE SIGNATURE

As reported upstream

When I don't add `aws-crt` I get the following compilation error:
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
45ae3d2d1f8e7af7f439530f5871593cd61e5a4c
Manifest
packages/signature-v4-crt/package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

aws/aws-sdk-js-v3 #3640 · read the original issue
### Describe the bug

I depend on `@aws-sdk/client-quicksight@3.99.0` and I am using the `ListUsers` and `DeleteUser` command. You can see my repo [here](https://github.com/StateFarmIns/terraform-aws-quicksight-user-pruning).



When I don't add `aws-crt` I get the following compilation error:



```

 ~/d/g/g/quicksight-pruning-test   master ±  yarn build

yarn run v1.22.19

$ webpack && echo '// This file is committed because Terraform needs it to be there. Source code is in src folder' > pruneQuickSightUsers.js && cat dist/pruneQuickSightUsers.js >> pruneQuickSightUsers.js

asset pruneQuickSightUsers.js 4.46 MiB [emitted] [minimized] (name: pruneQuickSightUsers)

orphan modules 3.4 MiB [orphan] 615 modules

runtime modules 1.25 KiB 5 modules

built modules 2.68 MiB [built]

  javascript modules 2.65 MiB

    modules by path ./node_modules/fast-xml-parser/src/*.js 43.2 KiB 9 modules

    modules by path ./node_modules/entities/lib/*.js 11.8 KiB

      ./node_modules/entities/lib/index.js 3.6 KiB [built] [code generated]

      + 3 modules

    ./src/pruneQuickSightUsers.ts + 255 modules 2.6 MiB [not cacheable] [built] [code generated]

    ./node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js 290 bytes [built] [code generated]

  json modules 30 KiB

    ./node_modules/entities/lib/maps/entities.json 28.4 KiB [built] [code generated]

    ./node_modules/entities/lib/maps/legacy.json 1.24 KiB [built] [code generated]

    ./node_modules/entities/lib/maps/xml.json 62 bytes [built] [code generated]

    ./node_modules/entities/lib/maps/decode.json 308 bytes [built] [code generated]



WARNING in ./node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js 3:96-114

Module not found: Error: Can't resolve 'aws-crt' in '/Users/m9ox/dev/git/github/quicksight-pruning-test/node_modules/@aws-sdk/util-user-agent-node/dist-es'

 @ ./node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js 5:0-52 16:23-37

 @ ./node_modules/@aws-sdk/client-ses/dist-es/runtimeConfig.js 12:0-65 22:898-914

 @ ./node_modules/@aws-sdk/client-ses/dist-es/SESClient.js 10:0-73 15:24-42

 @ ./node_modules/@aws-sdk/client-ses/dist-es/index.js 2:0-28 2:0-28

 @ ./src/NotificationManager.ts 37:0-66 40:29-38 56:47-63

 @ ./src/pruneQuickSightUsers.ts 39:0-60 61:42-61



1 warning has detailed information that is not shown.

Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.



webpack 5.72.1 compiled with 1 warning in 28973 ms

✨  Done in 30.57s.

```

### Expected Behavior

I shouldn't have to install `aws-crt` as a dependency manually to get compilation to work.

### Current Behavior

I must `yarn add aws-crt` to get compilation to work.

### Reproduction Steps

1. `yarn add @aws-sdk/client-quicksight`

2. Invoke the QuickSight client from code

3. Try to compile from TypeScript w/ webpack

4. Compilation error

### Possible Solution

_No response_

### Additional Information/Context

I saw other issues around this, but they were all resolved in the past. This seems like a new issue to me.

### SDK version used

3.99.0

### Environment details (OS name and version, etc.)

Happens on Mac & Linux
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]