Does this library support Hermes

Aperta
#28 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
android, react-native, typescript
Ambito
mobile

Direzione di ricerca

Start by reproducing the Android release build with Hermes enabled and disabled, using the reported React Native 0.70.5 environment and the generated bundle path under myapp/android/app/build/generated/assets/react/staging/release. Determine whether react-freeze causes the reported build failure rather than the listed warnings; done would be a confirmed compatibility result or a documented limitation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Sorry to bother, when I build Android on CircleCI(x86_64) and localmachine(M1) by fastlane and bundle. Both show the same error. But after I disable Hermes. The error goes away. Since the error points to react-freeze, so I ask it here. Thank you!

npx react-native info info Fetching system and libraries information... System: OS: macOS 13.0 CPU: (8) arm64 Apple M1 Memory: 94.89 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.17.1 - ~/.nvm/versions/node/v16.17.1/bin/node Yarn: Not Found npm: 8.15.0 - ~/.nvm/versions/node/v16.17.1/bin/npm Watchman: 2022.10.17.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1 Android SDK: Not Found IDEs: Android Studio: Not Found Xcode: 14.1/14B5033e - /usr/bin/xcodebuild Languages: Java: 11.0.17 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: ^18.2.0 => 18.2.0 react-native: 0.70.5 => 0.70.5 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found

`[07:59:28]:
Picked up _JAVA_OPTIONS: -Xmx1500m
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:1769:18: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow"
typeof DebuggerInternal !== 'undefined' && DebuggerInternal.shouldPauseOnThrow === true
^~~~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:4994:7: warning: the variable "setTimeout" was not declared in function "logCapturedError"
setTimeout(function () {
^~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:3592:21: warning: the variable "clearTimeout" was not declared in anonymous function " 90#"
cancelTimeout = clearTimeout;
^~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:7492:30: warning: the variable "REACT_DEVTOOLS_GLOBAL_HOOK" was not declared in anonymous function " 90#"
if ("undefined" !== typeof REACT_DEVTOOLS_GLOBAL_HOOK) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:7507:146: warning: the variable "nativeFabricUIManager" was not declared in anonymous function " 119#"
null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.dispatchCommand(handle.node, command, args)) : _$$_REQUIRE(_dependencyMap[2]).UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args));
^~~~~~~~~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:8324:5: warning: the variable "setImmediate" was not declared in function "handleResolved"
setImmediate(function () {
^~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:8540:16: warning: the variable "AggregateError" was not declared in function "getAggregateError"
if (typeof AggregateError === 'function') {
^~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:11456:12: warning: the variable "fetch" was not declared in anonymous function " 294#"
fetch: fetch,
^~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:11457:14: warning: the variable "Headers" was not declared in anonymous function " 294#"
Headers: Headers,
^~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:11458:14: warning: the variable "Request" was not declared in anonymous function " 294#"
Request: Request,
^~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:11459:15: warning: the variable "Response" was not declared in anonymous function " 294#"
Response: Response
^~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:11608:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer"
var reader = new FileReader();
^~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:11645:36: warning: the variable "Blob" was not declared in anonymous function " 305#"
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
^~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:11647:40: warning: the variable "FormData" was not declared in anonymous function " 305#"
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
^~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:11649:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 305#"
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
^~~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:11877:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 314#"
var xhr = new XMLHttpRequest();
^~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:11468:76: warning: the variable "self" was not declared in anonymous function " 297#"
var global = typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self || typeof global !== 'undefined' && global;
^~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:19082:27: warning: the variable "performance" was not declared in anonymous function " 498#"
if ("object" === typeof performance && "function" === typeof performance.now) {
^~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:19105:26: warning: the variable "navigator" was not declared in anonymous function " 498#"
"undefined" !== typeof navigator && undefined !== navigator.scheduling && undefined !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
^~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:19172:37: warning: the variable "MessageChannel" was not declared in anonymous function " 498#"
};else if ("undefined" !== typeof MessageChannel) {
^~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:26733:32: warning: the variable "requestAnimationFrame" was not declared in function "onUpdate"
this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
^~~~~~~~~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:40700:16: warning: the variable "AbortController" was not declared in function "getAbortController"
if (typeof AbortController === 'function') {
^~~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:42699:34: warning: the variable "setInterval" was not declared in function "updateRefetchInterval"
this.refetchIntervalId = setInterval(function () {
^~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:42723:11: warning: the variable "clearInterval" was not declared in function "clearRefetchInterval"
clearInterval(this.refetchIntervalId);
^~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:47087:20: warning: the variable "cancelAnimationFrame" was not declared in function "schedule 2#"
var cancel = cancelAnimationFrame;
^~~~~~~~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:77649:25: warning: the variable "Atomics" was not declared in anonymous function " 3494#"
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
^~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:77650:24: warning: the variable "BigInt" was not declared in anonymous function " 3494#"
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
^~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:77663:38: warning: the variable "FinalizationRegistry" was not declared in anonymous function " 3494#"
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
^~~~~~~~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:77688:35: warning: the variable "SharedArrayBuffer" was not declared in anonymous function " 3494#"
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
^~~~~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:77702:25: warning: the variable "WeakRef" was not declared in anonymous function " 3494#"
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
^~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:79302:51: warning: the variable "btoa" was not declared in function "dispatchXhrRequest"
requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
^~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:80283:7: warning: the variable "Buffer" was not declared in function "testForBuffer"
Buffer.isBuffer({
^~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:100843:15: warning: the variable "util" was not declared in function "containsOnlyValidXChars"
if (util.isNumberMatch(number, candidate.substring(index)) != MatchType.NSN_MATCH) {
^~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:100843:73: warning: the variable "MatchType" was not declared in function "containsOnlyValidXChars"
if (util.isNumberMatch(number, candidate.substring(index)) != MatchType.NSN_MATCH) {
^~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:100870:11: warning: the variable "PhoneNumberUtil" was not declared in function "isNationalPrefixPresentIfRequired"
if (PhoneNumberUtil.formattingRuleHasFirstGroupOnly(formatRule.getNationalPrefixFormattingRule())) {
^~~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:100891:69: warning: the variable "CountryCodeSource" was not declared in function "containsMoreThanOneSlashInNationalNumber"
var candidateHasCountryCode = number.getCountryCodeSource() === CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN || number.getCountryCodeSource() === CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN;
^~~~~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:100898:31: warning: the variable "normalizeDigits" was not declared in function "checkNumberGroupingIsValid"
var normalizedCandidate = normalizeDigits(candidate, true
^~~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:100906:28: warning: the variable "MetadataManager" was not declared in function "checkNumberGroupingIsValid"
var alternateFormats = MetadataManager.getAlternateFormatsForCountry(number.getCountryCode());
^~~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:100932:25: warning: the variable "formatNumber" was not declared in function "getNationalNumberGroups"
var rfc3966Format = formatNumber(number, 'RFC3966', metadata);
^~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:100943:53: warning: the variable "NON_DIGITS_PATTERN" was not declared in function "allNumberGroupsAreExactlyPresent"
var candidateGroups = normalizedCandidate.split(NON_DIGITS_PATTERN);
^~~~~~~~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:100978:65: warning: the variable "Character" was not declared in function "allNumberGroupsRemainGrouped"
if (util.getNddPrefixForRegion(region, true) != null && Character.isDigit(normalizedCandidate.charAt(fromIndex))) {
^~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:113863:14: warning: the variable "babelHelpers" was not declared in function "isSymbol 2#"
return babelHelpers"typeof" === 'symbol';
^~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:114514:20: warning: the variable "WebAssembly" was not declared in anonymous function " 5622#"
wasm = new WebAssembly.Instance(new WebAssembly.Module(
^~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:136729:20: warning: the variable "localStorage" was not declared in function "ColorSchemeStore"
if (typeof localStorage !== "undefined") {
^~~~~~~~~~~~
myapp/android/app/build/generated/assets/react/staging/release/index.android.bundle:142527:52: warning: the variable "FileList" was not declared in function "fe"
if (de && (e instanceof Blob || e instanceof FileList) || !r && !i(e)) return e;
^~~~~~~~
myapp/node_modules/metro-source-map/node_modules/source-map/lib/source-map-generator.js:289
throw new Error('Invalid mapping: ' + JSON.stringify({
^

Error: Invalid mapping: {"generated":{"line":1,"column":702261},"source":"myapp/node_modules/react-freeze/src/index.tsx","original":{"line":37,"column":-1},"name":null}
at SourceMapGenerator_validateMapping [as _validateMapping] (myapp/node_modules/metro-source-map/node_modules/source-map/lib/source-map-generator.js:289:13)
at SourceMapGenerator_addMapping [as addMapping] (myapp/node_modules/metro-source-map/node_modules/source-map/lib/source-map-generator.js:101:12)
at myapp/node_modules/metro-source-map/src/composeSourceMaps.js:41:15
at MappingsConsumer.eachMapping (myapp/node_modules/metro-source-map/src/Consumer/AbstractConsumer.js:36:16)
at composeSourceMaps (myapp/node_modules/metro-source-map/src/composeSourceMaps.js:35:16)
at Object. (myapp/node_modules/react-native/scripts/compose-source-maps.js:59:5)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)`

Lingua principale
TypeScript
Stelle
1.7k
Fork
45
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di software-mansion/react-freeze

Tutte le issue di software-mansion/react-freeze

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.