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

Supabase won't compile project #163

Open
erodriguezh opened this issue Jan 14, 2023 · 0 comments
Open

Supabase won't compile project #163

erodriguezh opened this issue Jan 14, 2023 · 0 comments

Comments

@erodriguezh
Copy link

Hello,

I added Supabase to a project and the app does not compile for either iOS or Android.

Android Output

 @ ./node_modules/@triniwiz/nativescript-supabase-storage/lib/StorageFileApi.js 4:0-84 35:29-41 44:27-44 49:25-42 51:25-42 55:26-38 105:29-41 114:27-44 119:25-42 121:25-42 125:26-38
 @ ./node_modules/@triniwiz/nativescript-supabase-storage/lib/index.js 2:0-33 2:0-33
 @ ./node_modules/@triniwiz/nativescript-supabase-storage/SupabaseStorageClient.js 1:0-57 2:43-59 12:19-33
 @ ./node_modules/@triniwiz/nativescript-supabase-storage/index.js 1:0-64 2:0-33
 @ ./node_modules/@triniwiz/nativescript-supabase/SupabaseClient.js 5:0-80 57:15-36
 @ ./node_modules/@triniwiz/nativescript-supabase/index.js 1:0-46 8:15-29 10:0-41
 @ ./src/app/core/services/supabase.service.ts 2:0-63 8:24-36
 @ ./src/app/core/services/index.ts 1:0-35 1:0-35
 @ ./src/app/app.component.ts 2:0-49 4:0-37 22:54-72
 @ ./src/app/app.module.ts 3:0-47 8:82-94
 @ ./src/main.ts 4:0-45 6:69-78

webpack 5.75.0 compiled with 1 warning in 158 ms
Webpack compilation complete. Watching for file changes.
/Users/erodr/Developer/playground/supadater/platforms/tempPlugin/core/gradlew:36: parse error near `('
Failed to build plugin @nativescript/core :
Error: Command ./gradlew failed with exit code 1

iOS Output

 NativeScript encountered a fatal error: Uncaught TypeError: Cannot convert undefined or null to object
  at
  ./node_modules/whatwg-url/lib/utils.js(file: src/webpack:/supadater/node_modules/whatwg-url/lib/utils.js:34:38)
  at __webpack_require__(file: src/webpack:/supadater/webpack/bootstrap:24:0)
  at fn(file: src/webpack:/supadater/webpack/runtime/hot module replacement:62:0)
  at ./node_modules/whatwg-url/lib/URL.js(file: src/webpack:/supadater/node_modules/whatwg-url/lib/URL.js:4:14)
  at __webpack_require__(file: src/webpack:/supadater/webpack/bootstrap:24:0)
  at fn(file: src/webpack:/supadater/webpack/runtime/hot module replacement:62:0)
  at ./node_modules/whatwg-url/webidl2js-wrapper.js(file: src/webpack:/supadater/node_modules/whatwg-url/webidl2js-wrapper.js:3:12)
  at __webpack_require__(file: src/webpack:/supadater/webpack/bootstrap:24:0)
  at fn(file: src/webpack:/supadater/webpack/runtime/hot module replacement:62:0)
  at ./node_modules/whatwg-url/index.js(file: src/webpack:/supadater/node_modules/whatwg-url/index.js:3:33)
  at __webpack_require__(file: src/webpack:/supadater/webpack/bootstrap:24:0)
  at fn(file: src/webpack:/supadater/webpack/runtime/hot module replacement:62:0)
  at ./node_modules/@triniwiz/nativescript-supabase-postgrest/lib/PostgrestQueryBuilder.js(file:///app/vendor.js:48444:68)
  at __webpack_require__(file: src/webpack:/supadater/webpack/bootstrap:24:0)
  at fn(file: src/webpack:/supadater/webpack/runtime/hot module replacement:62:0)
  at ./node_modules/@triniw<>

package.json

{
  "dependencies": {
    "@angular/animations": "~15.0.0",
    "@angular/common": "~15.0.0",
    "@angular/compiler": "~15.0.0",
    "@angular/core": "~15.0.0",
    "@angular/forms": "~15.0.0",
    "@angular/platform-browser": "~15.0.0",
    "@angular/platform-browser-dynamic": "~15.0.0",
    "@angular/router": "~15.0.0",
    "@nativescript/angular": "~15.0.0",
    "@nativescript/core": "~8.4.0",
    "@nativescript/theme": "~3.0.2",
    "@triniwiz/nativescript-supabase": "^0.3.0",
    "@triniwiz/nativescript-supabase-gotrue": "^0.3.0",
    "@triniwiz/nativescript-supabase-postgrest": "^0.3.0",
    "@triniwiz/nativescript-supabase-realtime": "^0.3.0",
    "@triniwiz/nativescript-supabase-storage": "^0.3.0",
    "rxjs": "~7.5.0",
    "zone.js": "~0.11.5"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~15.0.0",
    "@angular/compiler-cli": "~15.0.0",
    "@nativescript/android": "8.4.0",
    "@nativescript/ios": "8.4.0",
    "@nativescript/types": "~8.4.0",
    "@nativescript/webpack": "~5.0.12",
    "@ngtools/webpack": "~15.0.0",
    "supabase": "^1.33.0",
    "typescript": "~4.8.4"
  }
}

OS: MacOS 12.6.1
Node: 18.10.0
NS: 8.4.0

Steps to reproduce it

Run Stackblitz with NS Preview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant