super-app-example icon indicating copy to clipboard operation
super-app-example copied to clipboard

Property '__webpack_require__' doesn't exist.

Open Jaysalasi opened this issue 2 years ago • 16 comments

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 avatar Oct 04 '23 02:10 Jaysalasi

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!

jbroma avatar Oct 04 '23 08:10 jbroma

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] <scriptName> ...

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

Jaysalasi avatar Oct 04 '23 10:10 Jaysalasi

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

jbroma avatar Oct 04 '23 11:10 jbroma

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

BF3C18DC-9F46-4101-A5C0-40CD4D75065C

Jaysalasi avatar Oct 04 '23 11:10 Jaysalasi

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.

jbroma avatar Oct 04 '23 11:10 jbroma

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

image

Jaysalasi avatar Oct 04 '23 12:10 Jaysalasi

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

jbroma avatar Oct 04 '23 12:10 jbroma

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

Jaysalasi avatar Oct 04 '23 12:10 Jaysalasi

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

Jaysalasi avatar Oct 04 '23 13:10 Jaysalasi

I get this error now

image

image

Jaysalasi avatar Oct 04 '23 13:10 Jaysalasi

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

jbroma avatar Oct 04 '23 15:10 jbroma

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

I am using a real device not a simulator

Jaysalasi avatar Oct 04 '23 16:10 Jaysalasi

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

Jaysalasi avatar Oct 04 '23 16:10 Jaysalasi

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.

shailesh-daund avatar Dec 28 '23 14:12 shailesh-daund

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

nguyentr88 avatar Feb 20 '24 04:02 nguyentr88

@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

shakeelkoper avatar Aug 02 '24 13:08 shakeelkoper