Comments (4)
whatwg-url
related dependencies have to be transpiled by Babel in order to work. Metro transpiles everything by default, that's why it was working.
Add /node_modules(.*[/\\])+whatwg-url/
to include
array for 1st babel-loader
: https://github.com/callstack/repack/blob/main/templates/webpack.config.js#L148
Then you will be able to use import 'react-native-url-polyfill/auto'
or to the entry
array in webpack.config.js
:
entry: [
...ReactNative.getInitializationEntries(reactNativePath, {
hmr: devServer.hmr,
}),
'react-native-url-polyfill/auto',
entry,
],
from repack.
This is the implementation for URL: https://github.com/facebook/react-native/blob/0.64-stable/Libraries/Blob/URL.js#L195 which is used by Metro and Re.Pack. I've checked both with Metro and Re.Pack and with both the not implemented
error is thrown.
I'm curious how it was working before without Re.Pack. Do you have some polyfill for it?
from repack.
Sorry for not mentioning it in before. Using https://github.com/charpeni/react-native-url-polyfill
from repack.
That worked. Thank you so much.
from repack.
Related Issues (20)
- Bug in `invalidateScripts` leading to app crash HOT 3
- Add docs for `@callstack/repack-init`
- Unable to find MiniApp.container.bundle for iOS in compilation assets HOT 3
- Apk bundling error HOT 12
- has anyone integrated @storybook/react-native v7.x successfully with re.pack HOT 1
- [Docs] Module Resolution HOT 1
- Vendored Device class is broken when it comes to debugging HOT 3
- [Docs] Tree-shaking benchmark of RN app HOT 1
- Brotli decompression HOT 1
- RePack with rn_nodeify HOT 2
- Apk not launching HOT 5
- ERROR while setting up code signing HOT 2
- Issue with node v22.0.0 HOT 4
- Error: repack react native module was not found. Did you forget to update native dependencies? HOT 7
- TypeError: webpackContext.u is not a function (it is undefined)
- Property SentryError doesnt exist HOT 3
- ChunkLoad Error HOT 3
- bundling mini-apps cause crashes HOT 17
- How to config webpack to reuse existing dependencies from the main bundle HOT 4
- How to debug blank screen issue with no error output? HOT 23
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 repack.