Code Monkey home page Code Monkey logo

Comments (5)

samijaber avatar samijaber commented on August 26, 2024 2

Ah, thanks! From my experience, unpkg can be slow for the first request to a file...I imagine bundlejs times out, but then after I clicked on all of them, that caused the unpkg cache to populate so it worked for you.

I'm going to close this issue. Thank you for your help!

from bundlejs.

okikio avatar okikio commented on August 26, 2024

Thanks for taking the time, after some thorough review I've confirmed the issue

^ For the version of the [email protected] being used, the /dist/hermes-tracing-profile-transformer.esm.js which is the official esm module listed by the package.json, but unfortunately it doesn't exists in version [email protected].

from bundlejs.

okikio avatar okikio commented on August 26, 2024

A possible solution is

{
  // ...,
  "alias": {
    "hermes-profile-transformer": "[email protected]/dist/index.js"
  }
}

But all in all bundlejs doesn't have great support for react-native yet, but this is a workflow I plan to handle fairly soon.

Also, react-native uses a bunch of flow syntax which just drives esbuild crazy, so that's something I need to handle as well

from bundlejs.

samijaber avatar samijaber commented on August 26, 2024

Thanks for investigating!

I tried your suggestion, and externalized react-native: https://bundlejs.com/?q=%40builder.io%2Fsdk-react-native%400.8.0&config=%7B%22esbuild%22%3A%7B%22alias%22%3A%7B%22hermes-profile-transformer%22%3A%22hermes-profile-transformer%400.0.6%2Fdist%2Findex.js%22%7D%2C%22external%22%3A%5B%22react-native%22%5D%7D%7D

It still ends up erroring, but in a different place:

Error: [getRequest] Failed at request (https://unpkg.com/@builder.io/[email protected]/lib/browser/module/functions/set.js)

TypeError: Failed to fetch

file exists: https://unpkg.com/@builder.io/[email protected]/lib/browser/module/functions/set.js

from bundlejs.

okikio avatar okikio commented on August 26, 2024

That might've been a one off cause it works for me SmartSelect_20240108-123548_Kiwi Browser.jpg

deno.bundlejs.com/[email protected]/[email protected]&config={"esbuild":{"alias":{"hermes-profile-transformer":"[email protected]/dist/index.js"},"external":["react-native"]}}

badge

from bundlejs.

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.