Closed threeng0227 closed 11 months ago
Did you run yarn start
first?
@thymikee I have run yarn start
, but not working.
Can you post all the steps you did? You also need to run yarn adbreverse
, maybe that's not super clear from the docs
@thymikee All my steps:
yarn
yarn start
yarn adbreverse
yarn run:host:android
Show error
hey @nhoxx,
This is a connectivity problem between android emulator and your dev server
yarn adbreverse
will do nothing unless the emulator is running, try running it after the emulator has started.
Hi @jbroma @thymikee thanks for helping me. I will double-check to see if I missed any steps.
@nhoxx any luck with resolving your issues?
@jbroma I have stuck when building. http://localhost:9003auth.container.bundle
not working, it looks like the auth module is having problems. I tried to solve it many times, but not working.
So I used this example https://github.com/callstack/repack-examples .It working fine.
@jbroma I have stuck when building.
http://localhost:9003auth.container.bundle
not working, it looks like the auth module is having problems. I tried to solve it many times, but not working. So I used this example https://github.com/callstack/repack-examples .It working fine.
same, i ran "yarn concurrently -P "yarn start:catalog" "yarn start:auth"" to see what's wrong with auth, it got something to do with repack not bundling correctly, i checked the generated/ios folder there's only: node_modules_react-native-async-storage_async-storage_src_index_ts.chunk.bundle not vendors-node_modules_react-native-async-storage_async-storage_src_index_ts.chunk.bundle.
Error: ENOENT: no such file or directory, open '/Users/superapp/super-app-showcase/packages/auth/build/generated/ios/vendors-node_modules_react-native-async-storage_async-storage_src_index_ts.chunk.bundle'
after changing the name to vendors-node_modules_react-native-async-storage_async-storage_src_index_ts.chunk.bundle. i got another error.
Error: ENOENT: no such file or directory, open '/Users/superapp/super-app-showcase/packages/auth/build/generated/ios/vendors-node_modules_pmmmwh_react-refresh-webpack-plugin_lib_runtime_RefreshUtils_js.chunk.bundle'
i think the error might be in the repack configuration.
Hi @duyanhv, You can see this example: https://github.com/callstack/repack-examples. I tried and working fine.
for anyone who's still searching for the answer:
comment the line verifyScriptSignature: 'strict'
in /host/index.js
comment all new Repack.plugins.CodeSigningPlugin
in webpack.config.mjs
@duyanhv thanks bro. it's work find with me
@nhoxx Can you give me step run ios pls?
@trancongdung12 what problems do you have during the ios build process?
@nhoxx https://github.com/callstack/super-app-showcase/issues/54 this is my issue.
@nhoxx #54 this is my issue.
Did you run yarn pods
?
@nhoxx I try yarn pods but it still has an error. error: Unable to load contents of file list: '/Target Support Files/Pods-host/Pods-host-resources-Debug-input-files.xcfilelist' (in target 'host' from project 'host')
This is adb connectivity problem
So use adb reverse command when it come and reload app with all port's number which is using for your host and mini modules.
Like:-
adb reverse tcp:3000 tcp:3000 && adb reverse tcp:8081 tcp:8081 && adb reverse tcp:9000 tcp:9000 && adb reverse tcp:9001 tcp:9001 && adb reverse tcp:9002 tcp:9002 && adb reverse tcp:9003 tcp:9003
Ask your Question
I clone the source and run
yarn run:host:android
--> show error [ScriptManager] Failed while resolving script locator: {"caller": undefined, "scriptId": "auth"} {"originalError": [TypeError: Network request failed]}Please help me! Thanks