expo / eas-cli

Fastest way to build, submit, and update iOS and Android apps
https://docs.expo.dev/eas/
MIT License
786 stars 82 forks source link

eas publish : Error: Unable to resolve module fs #1987

Open ramyareye opened 1 year ago

ramyareye commented 1 year ago

Build/Submit details page URL

No response

Summary

I'm trying to run eas publish but I get the error it works fine when I eas build

Managed or bare?

bare prebuild project

Environment


  expo-env-info 1.0.5 environment info:
    System:
      OS: macOS 13.5
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.5.0 
      Yarn: 1.22.19 
      npm: 9.8.0 
      Watchman: 2023.07.24.00 
    Managers:
      CocoaPods: 1.11.3
    SDKs:
      iOS SDK:
        Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
    IDEs:
      Android Studio: 2021.3 AI-213.7172.25.2113.9123335
      Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild
    npmPackages:
      expo: ^49.0.0 => 49.0.6
      react: 18.2.0 => 18.2.0
      react-dom: 18.2.0 => 18.2.0
      react-native: 0.72.3 => 0.72.3
      react-native-web: ~0.19.6 => 0.19.7
    npmGlobalPackages:
      eas-cli: 3.18.3
    Expo Workflow: bare

Error output

[expo-cli] Error: Unable to resolve module fs from app/node_modules/@nozbe/watermelondb/adapters/sqlite/sqlite-node/Database.js: fs could not be found within the project or in these directories:
[expo-cli]   node_modules/@nozbe/watermelondb/node_modules
[expo-cli]   node_modules
[expo-cli]
[expo-cli]    5 | exports.default = void 0;
[expo-cli]    6 | var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
[expo-cli] >  7 | var fs = require("fs");
...

Reproducible demo or steps to reproduce from a blank project

init expo project install and configure watermelon db using expo plugin!

guide : https://www.themorrow.digital/blog/how-to-use-watermelondb-with-react-native-expo

LinoIten commented 10 months ago

Same Issue here. have you found any solution?

lucksp commented 1 week ago

same issue