Skip to content

[supabase] ReferenceError: isAuthError is not defined #213

@PixsaOJ

Description

@PixsaOJ

I have recently updated my packages:

 		"nativescript-nfc-fix": "^5.1.0",
 		"nativescript-open-inbox": "^1.0.2",
 		"nativescript-vibrate": "^4.0.1",
-		"nativescript-vue": "3.0.0-rc.2",
+		"nativescript-vue": "3.0.0",
 		"nativescript-windowed-modal": "^7.0.0",
 		"node-html-markdown": "^1.3.0",
-		"pinia": "2.3.0",
+		"pinia": "3.0.1",
 		"postcss-loader": "^8.1.1",
 		"router-vue-native": "^2.1.0",
-		"sass-loader": "^16.0.4",
-		"ts-loader": "^9.5.1",
+		"sass-loader": "^16.0.5",
+		"ts-loader": "^9.5.2",
 		"tslib": "^2.8.1",
 		"turndown": "^7.2.0"
 	},
@@ -71,34 +71,30 @@
 		"@nativescript-community/set-version": "^1.0.5",
 		"@nativescript-dom/core-types": "^1.0.31",
 		"@nativescript-dom/vue-types": "^1.0.16",
-		"@nativescript/android": "~8.8.6",
+		"@nativescript/android": "~8.9.1",
 		"@nativescript/eslint-plugin": "^0.0.4",
-		"@nativescript/ios": "~8.8.2",
+		"@nativescript/ios": "~8.9.2",
 		"@nativescript/tailwind": "^2.1.0",
-		"@nativescript/types": "^8.8.0",
-		"@nativescript/webpack": "~5.0.22",
-		"@types/lodash": "^4.17.13",
-		"@types/node": "22.10.2",
+		"@nativescript/types": "^8.9.1",
+		"@nativescript/webpack": "~5.0.24",
+		"@types/lodash": "^4.17.16",
+		"@types/node": "22.14.0",
+		"@types/tailwindcss": "^3.1.0",
 		"@types/turndown": "^5.0.5",
-		"@typescript-eslint/eslint-plugin": "^8.18.0",
-		"@typescript-eslint/parser": "^8.18.0",
-		"@vue/typescript-plugin": "^2.1.10",
-		"eslint": "^9.16.0",
-		"eslint-config-prettier": "^9.1.0",
-		"eslint-plugin-prettier": "^5.2.1",
-		"eslint-plugin-vue": "^9.32.0",
+		"@typescript-eslint/eslint-plugin": "^8.29.0",
+		"@typescript-eslint/parser": "^8.29.0",
+		"@vue/typescript-plugin": "^2.2.8",
+		"eslint": "^9.24.0",
+		"eslint-config-prettier": "^10.1.1",
+		"eslint-plugin-prettier": "^5.2.6",
+		"eslint-plugin-vue": "^10.0.0",
 		"nativescript-custom-entitlements": "^0.2.0",
 		"nativescript-vue-router-extended": "^1.1.8",
-		"prettier": "^3.4.2",
+		"prettier": "^3.5.3",
 		"tailwindcss": "^3.4.16",
-		"typescript": "^5.7.2"
+		"typescript": "^5.8.3"
 	},

Code:

	const getUser = async () => {
		try {
			const result = await supabaseClient.auth.getUser()
			if (!result.error && result.data?.user) {
				return result.data.user
			}

		} catch (error) {
			console.log(error)
		}


		return null
	}

I get this error with no traces:

04-07 22:48:54.982 17126 17126 I JS      : CONSOLE LOG: ReferenceError: isAuthError is not defined

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