Git Product home page Git Product logo

sakai-nuxt's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sakai-nuxt's Issues

On runing sudo pnpm run dev got error

the below error raised when i run the "sudo pnpm run dev"

WARN Failed to resolve dependency: vue, present in 'optimizeDeps.include' 11:34:44

WARN Failed to resolve dependency: vue-router, present in 'optimizeDeps.include' 11:34:44

ERROR Error: The following dependencies are imported but could not be resolved: 11:34:44

vue (imported by /var/www/tbz/sakai/sakai-nuxt/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/nuxt/dist/app/nuxt.js)

Are they installed?
at file:///var/www/tbz/sakai/sakai-nuxt/node_modules/.pnpm/[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-f2591f42.js:44678:23
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 11:34:39
at async Timeout._onTimeout (file:///var/www/tbz/sakai/sakai-nuxt/node_modules/.pnpm/[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-f2591f42.js:44119:38)

Pages not loading

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.