Closed kopax-polyconseil closed 2 years ago
@amplitude/utils
is not part of the new Amplitude SDK maintained in this repo. It is part of https://github.com/amplitude/Amplitude-Node
The new @amplitude/analytics-node
SDK available in this repo does not depend on @amplitude/utils
at all (and it uses tslib 2)
And amplitude-js
is the old Amplitude JS SDK, available at https://github.com/amplitude/Amplitude-JavaScript
But I would say that the best solution would be to migrate to the new SDK in your project (using @amplitude/analytics-browser
for the browser SDK).
I think the packages in this repo has tslib@2.x already, right?
@kevinpagtakhan yes, this new SDK already uses tslib@2.x. but the description of the issue shows usages of the old SDK instead.
@stof so for us to help on this issue, we need to update amplitude-js
dependency on @amplitude/utils
to be the one we just released right? just making sure we're on the same page since there may be some confusion as to why this was opened on this repo
Can you check if this satisfies your proposed changes? https://github.com/amplitude/Amplitude-JavaScript/pull/553 Though I noticed amplitude-js has a yarn.lock
. Not sure if you are able to dedupe despite of
@kevinpagtakhan I'm not the one having the issue. But that's indeed my understanding.
@stof so for us to help on this issue
Thank you, we took not of the necessity to upgrade but it will have to be scheduled later in our backlogs, if we can have a quick fix that would be cool.
we need to update amplitude-js dependency on @amplitude/utils to be the one we just released right?
And yes you are right.
Though I noticed amplitude-js has a yarn.lock
Distributed module should not have lock file.
the amplitude-js
package does not have a lock file. the development repo has one, but it is not part of the npm package.
I see, so if lock files does not make it to npm then the PR should be sufficient
This is fixed in amplitude-js@v8.20.1
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
Possible Solution
Upgrade tslib in utils to ^2.0.0
Such as what as been done in https://github.com/amplitude/Amplitude-Node/issues/176
Steps to Reproduce
Environment