Git Product home page Git Product logo

Comments (7)

dhowe avatar dhowe commented on June 2, 2024 1

The link works again because I reverted package.json to the old entries in version 3.0.27. When I use the new entries, that file disappears. Can you describe what triggers the creation of the file via rollup/terser ?

from jsdelivr.

MartinKolarik avatar MartinKolarik commented on June 2, 2024 1

Indeed, I can see the problem with 3.0.26. Will take a look.

from jsdelivr.

MartinKolarik avatar MartinKolarik commented on June 2, 2024 1

The resolver fails with the error Error: Default condition should be last one, see docs:

"default" - the generic fallback that always matches. Can be a CommonJS or ES module file. This condition should always come last.

It should work if you move types to be before default.

from jsdelivr.

MartinKolarik avatar MartinKolarik commented on June 2, 2024 1

The error logs are not public, unfortunately. In most error cases, the response itself indicates the reason, but resolver errors are not so clear, that's something we might improve in the feature.

In this specific case, if you want to make sure it'll work after that change, a beta release might be a good option. 3.0.28-beta will be ignored for our "latest" link https://cdn.jsdelivr.net/npm/rita/+esm but you can still access it directly via https://cdn.jsdelivr.net/npm/[email protected]...

from jsdelivr.

MartinKolarik avatar MartinKolarik commented on June 2, 2024

This particular change should no break anything, and the posted link works for me:

image

from jsdelivr.

dhowe avatar dhowe commented on June 2, 2024

This may indeed solve the specific issue (I'm hesitant to try because I don't want to again break work for downstream users), but the larger problem is that this failure is opaque to the me as library maintainer. I suppose I would need to integrate specific tests of the jsdelivr urls into my build process... But on a failure, where would I find the resolver logs you refer to for debugging ?

from jsdelivr.

dhowe avatar dhowe commented on June 2, 2024

Would be ideal if the resolver error could be passed to the generated file

from jsdelivr.

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.