Skip to content

Build error in new Expo project #17

@gtokman

Description

@gtokman

I followed the installation instructions into a new expo project, but got the following error:

npx create-expo-app@latest
npx expo install @corasan/image-compressor react-native-nitro-modules
npx expo prebuild
npm run ios
pp
› Compiling @corasan/image-compressor Pods/ImageCompressor » ImageUtils.cpp

❌  (node_modules/@corasan/image-compressor/cpp/ImageUtils.hpp:7:10)

   5 | #include "ImageAsset.hpp"
   6 | #include <filesystem>
>  7 | #include <opencv2/opencv.hpp>
     |          ^ 'opencv2/opencv.hpp' file not found
   8 | #include <string>
   9 | #include "FileUtils.hpp"
  10 | 

› Compiling @corasan/image-compressor Pods/ImageCompressor » 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions