Comments (5)
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.
Thanks for taking the time, after some thorough review I've confirmed the issue
- https://unpkg.com/browse/@react-native-community/[email protected]/package.json
- https://unpkg.com/browse/[email protected]/package.json
- https://unpkg.com/browse/[email protected]/dist/
^ 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.
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.
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.
That might've been a one off cause it works for me
from bundlejs.
Related Issues (20)
- Size reported of bundle is off HOT 3
- getRequest [Failed at request] HOT 4
- Incorrent treeshake size in badge/API HOT 3
- API error HOT 22
- BUG: Treeshake doesn't work for badges HOT 11
- Strange behavior when using multiplug badges HOT 7
- Possible badge caching issue HOT 6
- Fetch the versions mentioned in package.json. HOT 4
- Fail to bundle `npm/lib/cli-entry.js` and `@npmcli/arborist` HOT 6
- Generates an incorrect URL for a Redux Toolkit nested entry point HOT 6
- Failed to build node-libcurl ("Couldn't load") HOT 1
- no longer works by default (with unpkg) HOT 4
- Build failed for `[email protected]` HOT 3
- [FIXED] Cross-Origin Read Blocking made the badges unavailable on Github Readmes HOT 3
- Build fails for `[email protected]` HOT 2
- Config externals shortcut HOT 3
- Exclude `await import('[...'])` in bundle size? HOT 2
- Failed for tippy.js HOT 5
- Can't load [email protected] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bundlejs.