Skip to content

maj tslib to next major #206

@kopax-polyconseil

Description

@kopax-polyconseil

Expected Behavior

We expect not to have any duplicate module after our application build

Current Behavior

We have tslib twice, because of amplitude-js and underlying amplitude utils

## static/js/2.f752eb41.chunk.js
tslib (Found 2 resolved, 2 installed, 13 depended. Latest 2.3.1.)
  1.14.1
    ~/@amplitude/utils/~/tslib
      * Dependency graph
        [email protected] -> amplitude-js@^8.16.1 -> @amplitude/utils@^1.0.5 -> tslib@^1.9.3
      * Duplicated files in static/js/2.f752eb41.chunk.js
        tslib/tslib.es6.js (S, 10845)

  2.3.1
    ~/tslib
      * Dependency graph
        [email protected] -> @fingerprintjs/fingerprintjs@^3.3.0 -> tslib@^2.0.1
        [email protected] -> firebase@^9.6.11 -> @firebase/[email protected] -> tslib@^2.1.0
        [email protected] -> firebase@^9.6.11 -> @firebase/[email protected] -> tslib@^2.1.0
        [email protected] -> firebase@^9.6.11 -> @firebase/[email protected] -> tslib@^2.1.0
        [email protected] -> firebase@^9.6.11 -> @firebase/[email protected] -> tslib@^2.1.0
        [email protected] -> firebase@^9.6.11 -> @firebase/[email protected] -> @firebase/[email protected] -> tslib@^2.1.0
        [email protected] -> firebase@^9.6.11 -> @firebase/[email protected] -> @firebase/[email protected] -> tslib@^2.1.0
        [email protected] -> firebase@^9.6.11 -> @firebase/[email protected] -> @firebase/[email protected] -> tslib@^2.1.0
        [email protected] -> firebase@^9.6.11 -> @firebase/[email protected] -> tslib@^2.1.0
        [email protected] -> firebase@^9.6.11 -> @firebase/[email protected] -> tslib@^2.1.0
        [email protected] -> firebase@^9.6.11 -> @firebase/[email protected] -> tslib@^2.1.0
        [email protected] -> firebase@^9.6.11 -> @firebase/[email protected] -> tslib@^2.1.0
      * Duplicated files in static/js/2.f752eb41.chunk.js
        tslib/tslib.es6.js (S, 12348)

* Understanding the report: Need help with the details? See:
  https://github.com/FormidableLabs/inspectpack/#diagnosing-duplicates
* Fixing bundle duplicates: An introductory guide:
  https://github.com/FormidableLabs/inspectpack/#fixing-bundle-duplicates

Possible Solution

Upgrade tslib in utils to ^2.0.0

Such as what as been done in amplitude/Amplitude-Node#176

Steps to Reproduce

  1. git clone https://github.com/pass-culture/pass-culture-app-native.git
  2. cd pass-culture-app-native
  3. remove this line in package.json : https://github.com/pass-culture/pass-culture-app-native/blob/master/package.json#L336
  4. nvm use
  5. yarn install
  6. yarn build:testing
  7. watch logs for duplicate plugins.

Environment

  • JS SDK Version: 8.16.1
  • Installation Method: yarn
  • Browser and Version: chrome latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions