kathawala / expo-file-dl

Download files to any folder and notify the user while the download is happening and when the download finishes
MIT License
44 stars 8 forks source link

Unable to resolve module @unimodules/core #20

Open paulsizer opened 2 years ago

paulsizer commented 2 years ago

Am I missing something? I am running a managed Expo app, there is some information about react-native-unimodules but that is for Bare Expo and React Native apps.

iOS Bundling failed 5544ms Unable to resolve module @unimodules/core from .../node_modules/expo-file-dl/node_modules/expo-media-library/build/MediaLibrary.js: @unimodules/core could not be found within the project or in these directories: node_modules/expo-file-dl/node_modules/expo-media-library/node_modules node_modules/expo-file-dl/node_modules node_modules

DonxDaniyar commented 2 years ago

Same issue

soymanuvalle commented 2 years ago

@paulsizer @DonxDaniyar Until the merge request gets approved you can install the package from this branch: yarn add github:soymanuvalle/expo-file-dl#expo-sdk-44

ownsupernoob2 commented 2 years ago

@paulsizer @DonxDaniyar Until the merge request gets approved you can install the package from this branch: yarn add github:soymanuvalle/expo-file-dl#expo-sdk-44

i tried downloading it but it gave me this error:

npm ERR! prepareGitDep 1> npm ERR! prepareGitDep > expo-file-dl@2.0.0 prepare C:\Users\ahmed\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-079a82c8 npm ERR! prepareGitDep > expo-module prepare npm ERR! prepareGitDep npm ERR! prepareGitDep npm ERR! prepareGitDep 2> npm WARN install Usage of the--devoption is deprecated. Use--also=devinstead. npm ERR! prepareGitDep npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm ERR! prepareGitDep npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added npm ERR! prepareGitDep npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart() npm ERR! prepareGitDep npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm ERR! prepareGitDep npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! prepareGitDep npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm ERR! prepareGitDep npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm ERR! prepareGitDep npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm ERR! prepareGitDep npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm ERR! prepareGitDep npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm ERR! prepareGitDep npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm ERR! prepareGitDep npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/ npm ERR! prepareGitDep C:\Users\ahmed\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-079a82c8\node_modules\expo-module-scripts\bin\expo-module-prepare:3 npm ERR! prepareGitDep set -eo pipefail npm ERR! prepareGitDep ^^^^^^^^ npm ERR! prepareGitDep npm ERR! prepareGitDep SyntaxError: Unexpected identifier npm ERR! prepareGitDep at Object.compileFunction (node:vm:352:18) npm ERR! prepareGitDep at wrapSafe (node:internal/modules/cjs/loader:1033:15) npm ERR! prepareGitDep at Module._compile (node:internal/modules/cjs/loader:1069:27) npm ERR! prepareGitDep at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) npm ERR! prepareGitDep at Module.load (node:internal/modules/cjs/loader:981:32) npm ERR! prepareGitDep at Function.Module._load (node:internal/modules/cjs/loader:822:12) npm ERR! prepareGitDep at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) npm ERR! prepareGitDep at node:internal/main/run_main_module:17:47 npm ERR! prepareGitDep npm ERR! code ELIFECYCLE npm ERR! prepareGitDep npm ERR! errno 1 npm ERR! prepareGitDep npm ERR! expo-file-dl@2.0.0 prepare:expo-module prepare npm ERR! prepareGitDep npm ERR! Exit status 1 npm ERR! prepareGitDep npm ERR! npm ERR! prepareGitDep npm ERR! Failed at the expo-file-dl@2.0.0 prepare script. npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! prepareGitDep npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in: npm ERR! prepareGitDep npm ERR! C:\Users\ahmed\AppData\Roaming\npm-cache\_logs\2022-08-17T05_26_38_741Z-debug.log npm ERR! prepareGitDep npm ERR! premature close