Giter Site home page Giter Site logo

Comments (12)

Murderlon avatar Murderlon commented on September 22, 2024 1

Note that it's impossible to override versions on npm, so making a "mistake with old versions" can't be the case.

Uppy is ESM-only, as is p-queue, so it might be a bundler issue with meteorjs?

from uppy.

Murderlon avatar Murderlon commented on September 22, 2024 1

I'll talk to the team to see if something when wrong with versioning here.

from uppy.

Murderlon avatar Murderlon commented on September 22, 2024 1

EventManager is back in utils so if it resolved to the latest in your build then everything should be fine.

#4952

from uppy.

Murderlon avatar Murderlon commented on September 22, 2024

I can't reproduce here on the latest versions: https://codesandbox.io/p/sandbox/uppy-dashboard-xpxuhd?file=%2Fsrc%2Findex.js%3A28%2C23

Do you have a reproducible example on CodeSandbox or StackBlitz?

from uppy.

okkan avatar okkan commented on September 22, 2024

i dont have an example right now, also we cant use latest version because of p-queue issue (it doesnt work with meteorjs, #4637), only working version was 3.3.1, without any change about uppy, our build started to throw error. Possibly you made a mistake with old versions.

from uppy.

okkan avatar okkan commented on September 22, 2024

ok we found the solution,

we didnt have @uppy/utils in package.json, so it was using the latest version of it, we added it then we got another error about aws-s3-multipart, same thing we didnt have it in package.json even we dont use it, then we added it to package.json with the compatible version, it fixed.

sorry for taking your time.

from uppy.

Murderlon avatar Murderlon commented on September 22, 2024

You shouldn't put @uppy/utils in your package.json, it's an internal-only package and all packages that need it have it in their dependencies already.

Trying to manually resolve our internal dependencies will give you more problems sooner or later, it's probably better to look into your bundler.

from uppy.

okkan avatar okkan commented on September 22, 2024

but when we dont put it, it uses latest version of it and latest version of utils is not compatible with our 3.3.1 core version

from uppy.

rschlack avatar rschlack commented on September 22, 2024

Hi Murderlon, I work with Okkan. If we don't put the @uppy/utils in our package file then utils/EventManager.js contains this line of code which references a file that does not exist in 3.3.1 core.

export { default } from '@uppy/core/lib/EventManager.js'

from uppy.

Murderlon avatar Murderlon commented on September 22, 2024

Our policy for breaking changes considers features/fixes which require changes across multiple packages to work not breaking. That means you should always upgrade packages together, not separately. You should either pin all the versions that work for you and stay on there or always upgrade packages together. You can't pin core and then keep installing newer versions of the other packages.

If you must, it's probably better to use overrides for npm or resolutions for yarn.

from uppy.

okkan avatar okkan commented on September 22, 2024

we didnt update or upgrade any package of uppy, you made a change in uppy/utils and it doesnt work with 3.3.1 so we had to put its an old version to package.json.

from uppy.

rschlack avatar rschlack commented on September 22, 2024

Thank you. This solved the issue.

from uppy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.