Skip to content

Error during initialization in Vue App — Uncaught TypeError: Cannot read properties of undefined (reading 'prototype') #58

Description

@mv-debug

Hi all, I see an error if I use this module. Do you get in touch with this in the past?

I use it like this:

import NextcloudClient from "nextcloud-link";
export default {
  data() {
    return {
      ....
    };
  },
  methods: {
    async save_to_nc() {
      const client = new NextcloudClient({
        url: "https://nc..",
        password: "xxxx",
        username: "yyy",
      });
      while (true) {
        if (await client.checkConnectivity()) {
          console.log("we are in");
        }

        await new Promise((resolve) => setTimeout(resolve, 5000));
      };

....

Stacktrace:
_Uncaught TypeError: Cannot read properties of undefined (reading 'prototype')
    at client.js:1:17501
    at client.js:9:6417
    at client.js:1:249
    at client.js:9:7260
    at client.js:1:249
    at client.js:11:2754
    at client.js:1:249
    at client.js:11:2934
    at client.js:1:249
    at client.js:11:3874_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions