deep-foundation / deep-foundation/sdk

Caused by: org.gradle.api.resources.MissingResourceException: Could not read script

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
11
Forks
10
PR merge metrics
No merged PRs in 30d

Description

### Bug description

Caused by: org.gradle.api.resources.MissingResourceException: Could not read script 'C:\Users\Kolya\AndroidStudioProjects\other Projects\DeepFondation\android\capacitor-cordova-android-plugins\cordova.variables.gradle' as it does not exist.

### Expected Behavior

launch of the project

### Current Behavior

an error occurred due to a missing file

### Steps to reproduce

1) created a project via: https://github.com/deep-foundation/sdk.git

2) cleared the "pages/index.tsx" file

3)git remote add sdk https://github.com/deep-foundation/sdk.git

4)git fetch sdk

5)git merge sdk/main --allow-unrelated-histories --strategy ours

6)git fetch sdk main

7)git merge sdk/some_old_commit_hash --allow-unrelated-histories --strategy ours

8)git merge sdk/main

9) installed node version 20

10) npm ci; cd electron; npm ci
After entering the command
An error appeared in the terminal indicating that the version must be at least 18

10) reinstalled the node to version 18

11) npm ci; cd electron; npm ci
no error occurred

12) npm run build
answer :

PS C:\Users\Kolya\AndroidStudioProjects\other Projects\DeepFondation> npm run build-android

> @deep-foundation/sdk@0.0.0-dev.5 build-android
> rimraf app && npm run export && npx cap sync android

> @deep-foundation/sdk@0.0.0-dev.5 export
> (cross-env NEXT_PUBLIC_EXPORT=1 NEXT_PUBLIC_I18N_DISABLE=1 next build)

⚠ Invalid next.config.js options detected:
⚠ Unrecognized key(s) in object: 'strictMode'
⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config
▲ Next.js 14.2.2

✓ Linting and checking validity of types
Creating an optimized production build ...
⚠ Compiled with warnings

./node_modules/@deep-foundation/deeplinks/imports/client.js
Critical dependency: the request of a dependency is an expression

Import trace for requested module:
./node_modules/@deep-foundation/deeplinks/imports/client.js

✓ Collecting page data

> Build optimization failed: found page without a React Component as default export in
pages/

See https://nextjs.org/docs/messages/page-without-valid-component for more info.

> @deep-foundation/sdk@0.0.0-dev.5 open-android
> npx cap open android
[info] Opening Android project at: android.
[?] Would you like to help improve Capacitor by sharing anonymous usage data? 💖
Read more about what is being collected and why here: https://capacitorjs.com/telemetry. You can change your mind at
any time by using the npx cap telemetry command.
? Share anonymous usage data? "(Y/n)

13)npm run start
The project opened, but with an error:

Caused by: org.gradle.api.resources.MissingResourceException: Could not read script 'C:\Users\Kolya\AndroidStudioProjects\other Projects\DeepFondation\android\capacitor-cordova-android-plugins\cordova.variables.gradle' as it does not exist.

### Workaround

1) command:
npm ci; (cd electron; npm ci)
you need to enter without parentheses, that is:
npm ci; cd electron; npm ci

### Environment

```shell
I don't understand what needs to be inserted here
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.