gitn00b1337 / expo-widgets

Bringing widget functionality to expo!
148 stars 12 forks source link

CommandError: Cannot find module './plugin/build' #25

Closed zheorekhy closed 2 months ago

zheorekhy commented 2 months ago

Hi. I'm trying to run the example by running:

npm start or npm prebuild:android

within example folder. And I get such error:

% npm run prebuild:android

expo-widgets-example@1.0.0 prebuild:android EXPO_NO_CACHE=true EXPO_NO_GIT_STATUS=true expo prebuild -p android --clean

Git status is dirty but the command will continue because EXPO_NO_GIT_STATUS is enabled... (node:70517) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) ✔ Cleared android code

CommandError: Cannot find module './plugin/build' Require stack:

eugene@MacBook-Pro-Eugene example % eugene@MacBook-Pro-Eugene example % eugene@MacBook-Pro-Eugene example % eugene@MacBook-Pro-Eugene example % npm start

expo-widgets-example@1.0.0 start expo start --dev-client

(node:70704) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) Error: Cannot find module './plugin/build' Require stack:

gitn00b1337 commented 2 months ago

Update the npm package to latest

zheorekhy commented 2 months ago

@gitn00b1337 It isn't a reason. I've found a solution. Before run the example we need to build the module from root npm run build and only then run the example!)