GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Optimization warnings in Angular 10 · Issue #2001 · feathersjs/feathers

Optimization warnings in Angular 10 #2001

New issue
Copy link
New issue
Copy link
Open
#2665
Open
Optimization warnings in Angular 10#2001
#2665
Copy link
Labels
ClientFeature
Milestone
v6

Description

@arkenstan
arkenstan
opened on Jun 28, 2020
Issue body actions

Steps to reproduce

On upgrading angular application to Angular 10.0.0 It gives warning for modules and packages that have dependency on commonjs or AMD for optimization bailouts

PSB Log for warnings

WARNING in src/app/core/services/feathers.service.ts depends on @feathersjs/socketio-client. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

WARNING in src/app/core/services/feathers.service.ts depends on @feathersjs/feathers. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

WARNING in src/app/core/services/feathers.service.ts depends on @feathersjs/authentication-client. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

WARNING in src/app/core/services/feathers.service.ts depends on socket.io-client. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

WARNING in src/app/core/services/feathers.service.ts depends on feathers-reactive. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

System configuration

Module versions
@feathersjs/authentication-client: "^4.5.4"
@feathersjs/feathers: "^4.5.3"
@feathersjs/socketio-client: "^4.5.4"
socket.io-client: "^2.3.0"

NodeJS version:
Node 12

Operating System:
Linux mint 19.3

Activity

  1. alejandroTapiaQ commented on Aug 7, 2020

    @alejandroTapiaQ
    alejandroTapiaQ
    on Aug 7, 2020
    More actions

    HI arkenstan well I resolve that warning adding this in angular.json file

    `
    "architect": {
    "build": {
    "builder": "@angular-devkit/build-angular:browser",
    "options": {
    "allowedCommonJsDependencies": [
    "socket.io-client",
    "socket.io-parser",
    "debug"
    ],

    `
    Also you can see #18025

    Reacted by Anshul Wagadre, Vinicius, Carlos Álvarez, Wahib Kerkeni and Andongwisye Mwamengo
  2. bertho-zero commented on Aug 8, 2020

    @bertho-zero
    bertho-zero
    on Aug 8, 2020
    Contributor
    More actions

    ESM builds should be added to correctly fix these warnings.

    Reacted by Stefan Sechelmann, Anshul Wagadre and Martin Stolz
  3. daffl
    added
    Client
    Feature
    on Sep 29, 2020
  4. axmad22 commented on Oct 16, 2020

    @axmad22
    axmad22
    on Oct 16, 2020
    More actions

    Had the same problem Warning: Entry point simplebar-angular contains deep imports
    try adding in the angular.json in the "build"=> "options":

    "allowedCommonJsDependencies": ["core-js"],

    Also I kind of remember adding something in the tsconfig.json
    that helped here is mine case check with default settings

    {
      "compileOnSave": false,
      "compilerOptions": {
        "baseUrl": "./",
        "outDir": "./public/out-tsc",
        "sourceMap": true,
        "declaration": false,
        "downlevelIteration": true,
        "experimentalDecorators": true,
        "module": "esnext",
        "moduleResolution": "node",
        "importHelpers": true,
        "target": "es2015",
        "allowSyntheticDefaultImports": true,
        "typeRoots": [
          "node_modules/@types"
        ],
        "lib": [
          "es2018",
          "dom"
        ]
      }
    }
    Reacted by Anshul Wagadre and Francisco Morello
  5. daffl
    added this to the v6 milestone on Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientFeature

    Type

    No type

    Projects

    No projects

      Milestone

      • v6No due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.