-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
amplitude/Amplitude-JavaScript
#553Labels
bugSomething isn't workingSomething isn't working
Description
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
- git clone https://github.com/pass-culture/pass-culture-app-native.git
- cd pass-culture-app-native
- remove this line in package.json : https://github.com/pass-culture/pass-culture-app-native/blob/master/package.json#L336
- nvm use
- yarn install
- yarn build:testing
- watch logs for duplicate plugins.
Environment
- JS SDK Version: 8.16.1
- Installation Method: yarn
- Browser and Version: chrome latest
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working