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

Pages not loading #10

Open
sven-borkert opened this issue Apr 19, 2024 · 1 comment
Open

Pages not loading #10

sven-borkert opened this issue Apr 19, 2024 · 1 comment

Comments

@sven-borkert
Copy link

sven-borkert commented Apr 19, 2024

Hi,

many of the pages are broken when I run this project. For example "uikit/Input.vue".

The CountryService is an object instance exported in service/CountryService.js:

export const CountryService = {
    getData() {
        return [
            { name: 'Afghanistan', code: 'AF' },

But in "uikit/Input.vue" it is tried to instantiate these with new, as if they were classes:

import CountryService from '@/service/CountryService';
import NodeService from '@/service/NodeService';

const countryService = new CountryService();
const nodeService = new NodeService();

onMounted(() => {
    countryService.getCountries().then((data) => (autoValue.value = data));
    nodeService.getTreeNodes().then((data) => (treeSelectNodes.value = data));
});

I think you have to either export a class from the service file and instantiate it, or use the object without calling new on it.

Regards,
Sven

@sven-borkert sven-borkert changed the title Pages not loading after dependency update Pages not loading Apr 20, 2024
@alex-eri
Copy link

alex-eri pushed a commit to alex-eri/sakai-nuxt that referenced this issue May 10, 2024
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

2 participants