Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Amplify downloads 1045 package from npm #11972

Open
3 tasks done
dev-gush opened this issue Sep 4, 2023 · 2 comments
Open
3 tasks done

AWS Amplify downloads 1045 package from npm #11972

dev-gush opened this issue Sep 4, 2023 · 2 comments
Assignees
Labels
Core Related to core Amplify issues dependencies Pull requests that update a dependency file feature-request Request a new feature

Comments

@dev-gush
Copy link

dev-gush commented Sep 4, 2023

Before opening, please confirm:

JavaScript Framework

Angular, React, Web Components, Next.js

Amplify APIs

Not applicable

Amplify Categories

No response

Environment information

# Put output below this line
 System:
    OS: macOS 13.4.1
    CPU: (10) arm64 Apple M2 Pro
    Memory: 89.02 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
    npm: 9.6.5 - ~/.nvm/versions/node/v18.16.0/bin/npm
  Browsers:
    Chrome: 116.0.5845.140
    Edge: 116.0.1938.69
    Safari: 16.5.2
  npmPackages:
    @ampproject/toolbox-optimizer:  undefined ()
    @babel/core:  undefined ()
    @babel/runtime:  7.15.4 
    @edge-runtime/cookies:  3.3.0 
    @edge-runtime/ponyfill:  2.3.0 
    @edge-runtime/primitives:  3.0.4 
    @hapi/accept:  undefined ()
    @mswjs/interceptors:  undefined ()
    @napi-rs/triples:  undefined ()
    @next/font:  undefined ()
    @next/react-dev-overlay:  undefined ()
    @opentelemetry/api:  undefined ()
    @segment/ajv-human-errors:  undefined ()
    @types/node: 20.5.7 => 20.5.7 
    @types/react: 18.2.21 => 18.2.21 
    @types/react-dom: 18.2.7 => 18.2.7 
    @vercel/nft:  undefined ()
    @vercel/og:  undefined ()
    acorn:  undefined ()
    amphtml-validator:  undefined ()
    anser:  undefined ()
    arg:  undefined ()
    assert:  undefined ()
    async-retry:  undefined ()
    async-sema:  undefined ()
    autoprefixer: 10.4.15 => 10.4.15 
    aws-amplify: ^5.3.10 => 5.3.10 
    babel-packages:  undefined ()
    browserify-zlib:  undefined ()
    browserslist:  undefined ()
    buffer:  undefined ()
    bytes:  undefined ()
    chalk:  undefined ()
    ci-info:  undefined ()
    cli-select:  undefined ()
    client-only:  0.0.1 
    comment-json:  undefined ()
    compression:  undefined ()
    conf:  undefined ()
    constants-browserify:  undefined ()
    content-disposition:  undefined ()
    content-type:  undefined ()
    cookie:  undefined ()
    cross-spawn:  undefined ()
    crypto-browserify:  undefined ()
    css.escape:  undefined ()
    data-uri-to-buffer:  undefined ()
    debug:  undefined ()
    devalue:  undefined ()
    domain-browser:  undefined ()
    edge-runtime:  undefined ()
    eslint: 8.48.0 => 8.48.0 
    eslint-config-next: 13.4.19 => 13.4.19 
    events:  undefined ()
    find-cache-dir:  undefined ()
    find-up:  undefined ()
    flowbite: ^1.8.1 => 1.8.1 
    flowbite-react: ^0.5.0 => 0.5.0 
    fresh:  undefined ()
    get-orientation:  undefined ()
    glob:  undefined ()
    gzip-size:  undefined ()
    http-proxy:  undefined ()
    http-proxy-agent:  undefined ()
    https-browserify:  undefined ()
    https-proxy-agent:  undefined ()
    icss-utils:  undefined ()
    ignore-loader:  undefined ()
    image-size:  undefined ()
    is-animated:  undefined ()
    is-docker:  undefined ()
    is-wsl:  undefined ()
    jest-docblock:  undefined ()
    jest-worker:  undefined ()
    json5:  undefined ()
    jsonwebtoken:  undefined ()
    loader-runner:  undefined ()
    loader-utils:  undefined ()
    lodash.curry:  undefined ()
    lru-cache:  undefined ()
    micromatch:  undefined ()
    mini-css-extract-plugin:  undefined ()
    nanoid:  undefined ()
    native-url:  undefined ()
    neo-async:  undefined ()
    next: 13.4.19 => 13.4.19 
    node-fetch:  undefined ()
    node-html-parser:  undefined ()
    ora:  undefined ()
    os-browserify:  undefined ()
    p-limit:  undefined ()
    path-browserify:  undefined ()
    platform:  undefined ()
    postcss: 8.4.29 => 8.4.29 (8.4.14)
    postcss-flexbugs-fixes:  undefined ()
    postcss-modules-extract-imports:  undefined ()
    postcss-modules-local-by-default:  undefined ()
    postcss-modules-scope:  undefined ()
    postcss-modules-values:  undefined ()
    postcss-preset-env:  undefined ()
    postcss-safe-parser:  undefined ()
    postcss-scss:  undefined ()
    postcss-value-parser:  undefined ()
    process:  undefined ()
    punycode:  undefined ()
    querystring-es3:  undefined ()
    raw-body:  undefined ()
    react: 18.2.0 => 18.2.0 
    react-builtin:  undefined ()
    react-dom: 18.2.0 => 18.2.0 
    react-dom-builtin:  undefined ()
    react-dom-experimental-builtin:  undefined ()
    react-experimental-builtin:  undefined ()
    react-is:  18.2.0 
    react-refresh:  0.12.0 
    react-server-dom-webpack-builtin:  undefined ()
    react-server-dom-webpack-experimental-builtin:  undefined ()
    regenerator-runtime:  0.13.4 
    sass-loader:  undefined ()
    scheduler-builtin:  undefined ()
    scheduler-experimental-builtin:  undefined ()
    schema-utils:  undefined ()
    semver:  undefined ()
    send:  undefined ()
    server-only:  0.0.1 
    setimmediate:  undefined ()
    shell-quote:  undefined ()
    source-map:  undefined ()
    stacktrace-parser:  undefined ()
    stream-browserify:  undefined ()
    stream-http:  undefined ()
    string-hash:  undefined ()
    string_decoder:  undefined ()
    strip-ansi:  undefined ()
    tailwind-merge: ^1.14.0 => 1.14.0 
    tailwindcss: 3.3.3 => 3.3.3 
    tar:  undefined ()
    terser:  undefined ()
    text-table:  undefined ()
    timers-browserify:  undefined ()
    tty-browserify:  undefined ()
    typescript: 5.2.2 => 5.2.2 
    ua-parser-js:  undefined ()
    undici:  undefined ()
    unistore:  undefined ()
    util:  undefined ()
    vm-browserify:  undefined ()
    watchpack:  undefined ()
    web-vitals:  undefined ()
    webpack:  undefined ()
    webpack-sources:  undefined ()
    ws:  undefined ()
    zod:  undefined ()
  npmGlobalPackages:
    @aws-amplify/cli: 11.1.1
    @aws-sdk/client-apigatewaymanagementapi: 3.332.0
    @nestjs/cli: 9.4.2
    corepack: 0.17.0
    git-account: 1.3.0
    nodemon: 2.0.22
    npm-check-updates: 16.10.9
    npm-check: 6.0.1
    npm: 9.6.5
    react-devtools: 4.28.0
    serverless: 3.30.1
    typescript: 5.1.3
    wscat: 5.2.0

Describe the bug

Doing an npm install aws-amplify downloads 1045 packages, which is a footprint too big for simple functionalities, ie, i am using just Auth from amplify, i dont think i need 1045 packages to make it work. And if i do, something is wrong with the library itself.

Expected behavior

Library footprint should be a lot lower

Reproduction steps

  1. Run npm install aws-amplify

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line


aws-exports.js

No response

Manual configuration

No response

Additional configuration

No response

Mobile Device

No response

Mobile Operating System

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional information and screenshots

No response

@dev-gush dev-gush added the pending-triage Issue is pending triage label Sep 4, 2023
@dev-gush
Copy link
Author

dev-gush commented Sep 4, 2023

Screenshot 2023-09-04 at 3 16 22 PM

@cwomack cwomack added Core Related to core Amplify issues dependencies Pull requests that update a dependency file labels Sep 5, 2023
@cwomack cwomack self-assigned this Sep 5, 2023
@cwomack cwomack removed the pending-triage Issue is pending triage label Sep 5, 2023
@cwomack
Copy link
Member

cwomack commented Sep 5, 2023

Hello @dev-gush and thank you for opening this issue. As part of our next major version, we are taking a look at our underlying dependencies, and making sure customers only get the bare minimum dependencies needed in their applications. We'll update you with a comment on this issue when the next major version is released!

@cwomack cwomack added the feature-request Request a new feature label Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Related to core Amplify issues dependencies Pull requests that update a dependency file feature-request Request a new feature
Projects
None yet
Development

No branches or pull requests

2 participants