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

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

Open
ramyareye opened this issue Aug 7, 2023 · 2 comments
Open

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

ramyareye opened this issue Aug 7, 2023 · 2 comments
Labels
eas update needs review Issue is ready to be reviewed by a maintainer

Comments

@ramyareye
Copy link

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

@ramyareye ramyareye added the needs review Issue is ready to be reviewed by a maintainer label Aug 7, 2023
@LinoIten
Copy link

LinoIten commented Nov 6, 2023

Same Issue here.
have you found any solution?

@lucksp
Copy link

lucksp commented Sep 19, 2024

same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eas update needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants