Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property '__webpack_require__' doesn't exist. #4

Open
Jaysalasi opened this issue Oct 4, 2023 · 16 comments
Open

Property '__webpack_require__' doesn't exist. #4

Jaysalasi opened this issue Oct 4, 2023 · 16 comments
Labels
question Further information is requested

Comments

@Jaysalasi
Copy link

Jaysalasi commented Oct 4, 2023

Ask your Question

Hi I have done the setup and when I run 'yarn run:host-app:android' i get the error: Property 'webpack_require' doesn't exist.

image

@Jaysalasi Jaysalasi added the question Further information is requested label Oct 4, 2023
@jbroma
Copy link
Member

jbroma commented Oct 4, 2023

Hi @Jaysalasi,

It looks to me that instead of starting Re.Pack dev-server you've started metro instead. Please run yarn webpack-start instead of yarn start.

I can also see that you're using Windows - please use .cjs template instead of .mjs one as that one might cause problem - we are actively working on sorting that out!

@Jaysalasi
Copy link
Author

Jaysalasi commented Oct 4, 2023

Thanks. I changed from .mjs to .cjs and then I run yarn webpack-start from my root folder and I got this error

$ yarn webpack-start
Usage Error: Couldn't find a script named "webpack-start".

$ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] ...

so i tried yarn react-native webpack-start
i get this error
image

@jbroma
Copy link
Member

jbroma commented Oct 4, 2023

it's yarn react-native webpack-start my bad there :)

@Jaysalasi
Copy link
Author

Jaysalasi commented Oct 4, 2023

@jbroma Thanks… No problem…
But I get this error now

BF3C18DC-9F46-4101-A5C0-40CD4D75065C

@jbroma
Copy link
Member

jbroma commented Oct 4, 2023

make sure to run adb reverse tcp:8081 tcp:8081 or other port that you are using. You can also try to to go into developer menu (on Mac it's CMD + M for android, so I suppose it's something similar for Windows as well) and going into Change Bundle location and entering localhost:8081 there.

@Jaysalasi
Copy link
Author

Jaysalasi commented Oct 4, 2023

@jbroma I restarted my computer and now yarn react-native webpack-start is not working anymore, but yarn start is working

image

@jbroma
Copy link
Member

jbroma commented Oct 4, 2023

that's rather unusual, perhaps try reinstalling your dependencies?

@Jaysalasi
Copy link
Author

sorry... I was trying it at the root folder.

@Jaysalasi
Copy link
Author

Jaysalasi commented Oct 4, 2023

yarn react-native webpack-start does not run in the root folder. is that normal?

@Jaysalasi
Copy link
Author

Jaysalasi commented Oct 4, 2023

I get this error now

image

image

@jbroma
Copy link
Member

jbroma commented Oct 4, 2023

make sure to run adb reverse tcp:8081 tcp:8081 or other port that you are using. You can also try to to go into developer menu (on Mac it's CMD + M for android, so I suppose it's something similar for Windows as well) and going into Change Bundle location and entering localhost:8081 there.

try these steps again

@Jaysalasi
Copy link
Author

I tried adb reverse tcp:8081 tcp:8081 nothing happened.

I am using a real device not a simulator

@Jaysalasi
Copy link
Author

I want to suggest something.

can you write down the sequence of commands to run starting from the first after git cloning the template. Thanks

@shailesh-daund
Copy link

shailesh-daund commented Dec 28, 2023

Having the same issue while running the Host app.

Screenshot_20231228_190749_HostApp

Also when navigating to mini app from host app having the following issue.

Screenshot_20231228_193826_HostApp

@Jaysalasi If you are able to solve this issue, it will be beneficial if you post the solution for the same.

@NguyenTran153
Copy link

Having the same issue while running the Host app.

Screenshot_20231228_190749_HostApp

Also when navigating to mini app from host app having the following issue.

Screenshot_20231228_193826_HostApp

@Jaysalasi If you are able to solve this issue, it will be beneficial if you post the solution for the same.

I have same error too

@shakeelkoper
Copy link

@jbroma I want to suggest something.
can you write down the sequence of commands to run starting from the first after git cloning the template. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants