okay these steps worked for me after i combined several answers 1.create directory android/app/src/main/assets 2. edit file the project node_modules\metro-config\src\defaults\blacklist.js Replace : var sharedBlacklist = [ /node_modules[/\\]react[/\\]dist[/\\].*/, /website\/node_modules\/.*/, /heapCapture\/bundle\.js/, /.*\/__tests__\/.*/ ]; with : var sharedBlacklist = [ /node_modules[\/\\]react[\/\\]dist[\/\\].*/, /website\/node_modules\/.*/, /heapCapture\/bundle\.js/, /.*\/__tests__\/.*/ ]; 3.Finaly run following command from project root directory react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
thanks a lot ... I was really worried about the error and tried several solutions but nothing work for me ... thanks a lot for you to make this videos it helped me and I was able to solve my error
@@Anunciacaosilas Se não tá funcionando faz assim: 1: Criar a pasta assets lá dentro de android/app/src/main do projeto 2: O meu eu tive que editar o arquivo blacklist.js, não sei o motivo, mas pelo que andei lendo tem alguma com render. Ele tá assim: var sharedBlacklist = [ /node_modules[/\\]react[/\\]dist[/\\].*/, /website\/node_modules\/.*/, /heapCapture\/bundle\.js/, /.*\/__tests__\/.*/ ]; Apaga e põe esse: var sharedBlacklist = [ /node_modules[\/\\]react[\/\\]dist[\/\\].*/, /website\/node_modules\/.*/, /heapCapture\/bundle\.js/, /.*\/__tests__\/.*/ ]; Ai roda o comando no prompt, mas usa em modo administrador: react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res E dopois compila que vai da certo. Obs.: Tenho que fazer essa gambiarra em cada um dos projetos que faço aqui. Abrçs, avise se deu certo.
@@codesoulsgoritmos Funcionou aqui irmão! Muito obrigado! Tô iniciando na área de programação . Poderia me tirar outra dúvida ? Rs Fala cmg por e-mail :Sillas_17@hotmail.com please
Hi, after running this command to bundle to assets, I still get this error. Any idea of how to solve it? Thanks! error SHA-1 for file C:\Users\Diamant\AppData\Roaming pm ode_modules\@react-native-community\cli ode_modules\metro\src\lib\polyfills equire.js (C:\Users\Diamant\AppData\Roaming pm ode_modules\@react-native-community\cli ode_modules\metro\src\lib\polyfills equire.js) is not computed. Run CLI with --verbose flag for more details. ReferenceError: SHA-1 for file C:\Users\Diamant\AppData\Roaming pm ode_modules\@react-native-community\cli ode_modules\metro\src\lib\polyfills equire.js (C:\Users\Diamant\AppData\Roaming pm ode_modules\@react-native-community\cli ode_modules\metro\src\lib\polyfills equire.js) is not computed at DependencyGraph.getSha1 (C:\Users\Diamant\AppData\Roaming pm ode_modules\@react-native-community\cli ode_modules\metro\src ode-haste\DependencyGraph.js:259:13) at C:\Users\Diamant\AppData\Roaming pm ode_modules\@react-native-community\cli ode_modules\metro\src\DeltaBundler\Transformer.js:211:26 at Generator.next () at asyncGeneratorStep (C:\Users\Diamant\AppData\Roaming pm ode_modules\@react-native-community\cli ode_modules\metro\src\DeltaBundler\Transformer.js:46:24) at _next (C:\Users\Diamant\AppData\Roaming pm ode_modules\@react-native-community\cli ode_modules\metro\src\DeltaBundler\Transformer.js:66:9) at C:\Users\Diamant\AppData\Roaming pm ode_modules\@react-native-community\cli ode_modules\metro\src\DeltaBundler\Transformer.js:71:7 at new Promise () at C:\Users\Diamant\AppData\Roaming pm ode_modules\@react-native-community\cli ode_modules\metro\src\DeltaBundler\Transformer.js:63:12 at Transformer.transformFile (C:\Users\Diamant\AppData\Roaming pm ode_modules\@react-native-community\cli ode_modules\metro\src\DeltaBundler\Transformer.js:236:7) at C:\Users\Diamant\AppData\Roaming pm ode_modules\@react-native-community\cli ode_modules\metro\src\Bundler.js:87:34
okay these steps worked for me after i combined several answers
1.create directory android/app/src/main/assets
2. edit file the project node_modules\metro-config\src\defaults\blacklist.js
Replace :
var sharedBlacklist = [
/node_modules[/\\]react[/\\]dist[/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/
];
with :
var sharedBlacklist = [
/node_modules[\/\\]react[\/\\]dist[\/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/
];
3.Finaly
run following command from project root directory
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
it works, thank you so much
Thank you ! been crushing my head on this more than 3 days!!!
Works perfectly, thanks
it worked. Thank so much!
i love u brother
You have my respect, master.
Thank you, it's work
you are the best
i spent 10 hours looking for the solution of this problem
brooo u saved myyyy life
thanks a lot
it worked. Thank so much!
OMG YOU ARE A LEGEND THANK YOU VERY MUCH.:))))))))
thanks a lot ... I was really worried about the error and tried several solutions but nothing work for me ... thanks a lot for you to make this videos it helped me and I was able to solve my error
Man you saved me Thank you!!!!
Great. Worked here. Thanks for sharing!
2 nd link worked for me thanks buddy❤🙏
Thanks man, great job!
Worked Like A Charm. Thanks Buddy.
thank you man for your efforts! made
my day!
Obrigado cara, vc salvou minha vida :) ( Thanks man, you saved my life. )
Mano, boa tarde! Não consegui resolver aqui no meu pc , vc poderia me dá um help ?
@@Anunciacaosilas é o mesmo erro que aparece no vídeo?
@@Anunciacaosilas Se não tá funcionando faz assim:
1: Criar a pasta assets lá dentro de android/app/src/main do projeto
2: O meu eu tive que editar o arquivo blacklist.js, não sei o motivo, mas pelo que andei lendo tem alguma com render.
Ele tá assim:
var sharedBlacklist = [
/node_modules[/\\]react[/\\]dist[/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/
];
Apaga e põe esse:
var sharedBlacklist = [
/node_modules[\/\\]react[\/\\]dist[\/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/
];
Ai roda o comando no prompt, mas usa em modo administrador:
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
E dopois compila que vai da certo.
Obs.: Tenho que fazer essa gambiarra em cada um dos projetos que faço aqui. Abrçs, avise se deu certo.
@@codesoulsgoritmos Funcionou aqui irmão! Muito obrigado! Tô iniciando na área de programação . Poderia me tirar outra dúvida ? Rs
Fala cmg por e-mail :Sillas_17@hotmail.com
please
@@Anunciacaosilas pode enviar suas dúvidas para franklin.dantas@vimcesistemas.com.br , assim que possível eu respondo. Abrçs e boa sorte.
Thank you so much, your instruction help me to solve my headache problem. Thank you.
but there is no chancges in the app when i change something in file
Thanks it worked!
si no les resulta agregan esto al android.manifest : android:usesCleartextTraffic="true"
thanks :) , it worked for me !
Thanks a lot!!!
And keep going!
thhaanks
You're perfect!!! Thank you :)
It work correctly. Thank you.
Hi, after running this command to bundle to assets, I still get this error. Any idea of how to solve it? Thanks!
error SHA-1 for file C:\Users\Diamant\AppData\Roaming
pm
ode_modules\@react-native-community\cli
ode_modules\metro\src\lib\polyfills
equire.js (C:\Users\Diamant\AppData\Roaming
pm
ode_modules\@react-native-community\cli
ode_modules\metro\src\lib\polyfills
equire.js) is not computed. Run CLI with --verbose flag for more details.
ReferenceError: SHA-1 for file C:\Users\Diamant\AppData\Roaming
pm
ode_modules\@react-native-community\cli
ode_modules\metro\src\lib\polyfills
equire.js (C:\Users\Diamant\AppData\Roaming
pm
ode_modules\@react-native-community\cli
ode_modules\metro\src\lib\polyfills
equire.js) is not computed
at DependencyGraph.getSha1 (C:\Users\Diamant\AppData\Roaming
pm
ode_modules\@react-native-community\cli
ode_modules\metro\src
ode-haste\DependencyGraph.js:259:13)
at C:\Users\Diamant\AppData\Roaming
pm
ode_modules\@react-native-community\cli
ode_modules\metro\src\DeltaBundler\Transformer.js:211:26
at Generator.next ()
at asyncGeneratorStep (C:\Users\Diamant\AppData\Roaming
pm
ode_modules\@react-native-community\cli
ode_modules\metro\src\DeltaBundler\Transformer.js:46:24)
at _next (C:\Users\Diamant\AppData\Roaming
pm
ode_modules\@react-native-community\cli
ode_modules\metro\src\DeltaBundler\Transformer.js:66:9)
at C:\Users\Diamant\AppData\Roaming
pm
ode_modules\@react-native-community\cli
ode_modules\metro\src\DeltaBundler\Transformer.js:71:7
at new Promise ()
at C:\Users\Diamant\AppData\Roaming
pm
ode_modules\@react-native-community\cli
ode_modules\metro\src\DeltaBundler\Transformer.js:63:12
at Transformer.transformFile (C:\Users\Diamant\AppData\Roaming
pm
ode_modules\@react-native-community\cli
ode_modules\metro\src\DeltaBundler\Transformer.js:236:7)
at C:\Users\Diamant\AppData\Roaming
pm
ode_modules\@react-native-community\cli
ode_modules\metro\src\Bundler.js:87:34
it's work Thank you..
Perfeito, estava aparecendo isso em meu smartphone quando fazia o debug, mas agora está tudo ok, muito obrigado!!!
Bro Great work. It has worked for me.
Thank u bro.. You save me
One more solution - just turn off your antivirus!!! It may block some ports
Gracias por su aporte!! me sirvió de mucho . Mil Gracias!!
thanks man,Its working fine for me too
Thank's man
Thank you very much! it worked!
Thanks man. You helped me a lot.
Thanks for you help!!!!
I cant run the following code... any help?
Thank you. Great job 👍
congratulations !
Thank you very much. You save my life hahahaha
thanks with all my heart
My solution: reinstall Android studio, then wipe data in AVD
Thank you siiiir
superb
thanks bro.
Thank you , you saved my day.
Thanks alot , you saved my time
thank you, friend
respect!
Thank's man!
After doing above steps I got this error
ENOENT: no such file or directory, open 'android/app/src/main/assets/index.android.bundle'
haa yrr same error help??
thanks bro
thank you so much !!!!
Thanks sir
Thanks man
Should we add that line in command prompt always ??btw thank you so much
Not working for me
you fucking rock :D
thanks
thank bro so much
(^^)
THANK U!
thx this works
Can I do this on my mobile phone?
Thank you so much...
Do I have to do this every time?
Yes you can do this, if you face this problem again.
worked100
Thank you
Thanks Bro
is not working
tank you
thx
THANKS!!!!!
Thanks
IT WORKED 4ME
you omitted expression, dislike
Thanks Belal, that helped me to fix the issue.
Thanks man, great job!
Thank's man
thanks brother
Thanks bro.
thank you
thanks bro