Git Product home page Git Product logo

Comments (19)

hanyufoodles avatar hanyufoodles commented on August 15, 2024 1

It's the same thing in @cloudinary/react. The pacakge.json claims the main entry file dist/index.js, but in the package published, the compiled files are in the pckage's root, there is no dist folder. Either the main path is wrong or the build should contain a dist folder with compiled js.

from frontend-frameworks.

patrick-tolosa avatar patrick-tolosa commented on August 15, 2024 1

@ctwheels Thanks, this will be released promptly (Sunday)

It was fixed in #136

from frontend-frameworks.

strausr avatar strausr commented on August 15, 2024 1

@ctwheels Thank you for the information we can indeed see the issue. We'll work on fix and update here on this thread once it is resolved.

from frontend-frameworks.

patrick-tolosa avatar patrick-tolosa commented on August 15, 2024

Thanks @ljonya
Can you please provide a minimal repo that reproduces this issue?

from frontend-frameworks.

el-leonya avatar el-leonya commented on August 15, 2024

@patrick-tolosa Here's the repo: https://github.com/ljonya/my-svelte-app
However, the problem is so obvious that the repo is unlikely to help.

from frontend-frameworks.

patrick-tolosa avatar patrick-tolosa commented on August 15, 2024

Thanks for the additional details.

We're in the middle of finishing the work on this project to release it as an official release, and we might not get to resolving this issue in this beta version.

We'll update this thread in any case once this is resolved (Either by an official release, or a bug fix on this beta version)

from frontend-frameworks.

ctwheels avatar ctwheels commented on August 15, 2024

@patrick-tolosa are there any updates on this? Looking to use it with sveltekit + vite and getting same issue, same fix.

from frontend-frameworks.

patrick-tolosa avatar patrick-tolosa commented on August 15, 2024

No immediate date @ctwheels , the initial release of this package will contain React and Angular, and following releases will include Svelte and Vue.

from frontend-frameworks.

patrick-tolosa avatar patrick-tolosa commented on August 15, 2024

We've merged fix to this issue and we'll release a patch in the next few days.

from frontend-frameworks.

strausr avatar strausr commented on August 15, 2024

@ljonya a fix for this issue was released:) Please let us know if you encounter any other issues.

from frontend-frameworks.

patrick-tolosa avatar patrick-tolosa commented on August 15, 2024

Closing for now, please reopen if still relevant.

from frontend-frameworks.

ctwheels avatar ctwheels commented on August 15, 2024

@patrick-tolosa this issue still exists for @cloudinary/html.
If you look at the changes that were made, only the React package was updated: https://github.com/cloudinary/frontend-frameworks/pull/131/files
The changes were not made for the html package (which affects Vite, Svelte, and other frameworks).

Image below of the package.json; which still contains the dist path.
image

from frontend-frameworks.

strausr avatar strausr commented on August 15, 2024

@ctwheels please see the latest release.

from frontend-frameworks.

ctwheels avatar ctwheels commented on August 15, 2024

@strausr thank you - I do see that it's now updated. I'm getting the following error now though. Any idea how to resolve this?

X [ERROR] [plugin vite:dep-scan] Failed to resolve entry for package "@cloudinary/html". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "@cloudinary/html". The package may have incorrect main/module/exports specified in its package.json.

image

from frontend-frameworks.

strausr avatar strausr commented on August 15, 2024

@ctwheels Thanks for the update. I'm unable to reproduce this on my end. Can you please share with me the reproduction steps?

Could you also provide the versions of the Cloudinary packages you're using?

from frontend-frameworks.

ctwheels avatar ctwheels commented on August 15, 2024

@strausr I have a sample here: https://github.com/ctwheels/cloudinary-html-vite-issue
It's a sveltekit project I just initialized and setup as a small sample of my existing project.
I'm using pnpm and netlify but use any package manager/utility and you get the same error.

Using @cloudinary/html version 1.2.0 and can confirm the links are updated (no longer have dist in them).

This line imports the Image component and anything else that's needed for Cloudinary image to be displayed.
This directory is where the Cloudinary image component exists in the project.
Edit this line with the name of your cloud instance for Cloudinary.

Let me know if you have any questions.

from frontend-frameworks.

strausr avatar strausr commented on August 15, 2024

@ctwheels Please see the latest release

from frontend-frameworks.

ctwheels avatar ctwheels commented on August 15, 2024

@strausr still getting same error on v1.2.2.

ERROR: [plugin: vite:dep-scan] Failed to resolve entry for package "@cloudinary/html". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "@cloudinary/html". The package may have incorrect main/module/exports specified in its package.json.

Although, it does load now in some instances, but it always reports this error.

I also updated my repo to include the new release - you can pull that in again and run the dev script to test.

from frontend-frameworks.

strausr avatar strausr commented on August 15, 2024

@ctwheels Thanks for the informarion. We'll take a look and update you with our findings

from frontend-frameworks.

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.