Git Product home page Git Product logo

Comments (7)

antfu avatar antfu commented on June 5, 2024 1

Planned to make one but didn't get time to do so. You might want to check the simple demo in the examples for now.

from vue-demi.

antfu avatar antfu commented on June 5, 2024

@ChrisMichaelPerezSantiago Can try to remove @vue/composition-api in your dev deps and run the install again. It might be some version conflicts in your env. And, can you find the installed version of vue-demi in your lock file or node_modules so I can have a better sense of where is breaking? Thanks

from vue-demi.

ChrisMichaelPerezSantiago avatar ChrisMichaelPerezSantiago commented on June 5, 2024

@antfu ,

I removed the @vue/composition-api package and then also removed the node_module along with the package-lock.

Then I did npm install, this generated the node_module again.
When running the program it shows me the same error that I showed you previously.

But I could see that in the package-lock they are registered:

  "vue": {
       "version": "2.6.12",
       "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.12.tgz",
       "integrity": "sha512-uhmLFETqPPNyuLLbsKz6ioJ4q7AZHzD8ZVFNATNyICSZouqP2Sz0rotWQC8UNBF6VGSCs5abnKJoStA6JbCbfg ==",
       "dev": true
     },
     "vue-demi": {
       "version": "0.2.0",
       "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.2.0.tgz",
       "integrity": "sha512-EbB3UxYacKwORuey3VShOO0IJ + h8W2aq6v574m0XRMYrVOH2TkfO660gm7ZfNVHKHK4leNzVkAGGIfYDxrAFPg ==",
       "requires": {
         "@ vue / composition-api": "> = 1.0.0-beta.1"
       }
     },

And in the node_module the package is also registered
@vue/composition-api and vue

from vue-demi.

antfu avatar antfu commented on June 5, 2024

Can you share with me a minimal reproduce repo? I am unable to make a reproduction it with examples/demo-vue-2-cli. Thanks.

from vue-demi.

ChrisMichaelPerezSantiago avatar ChrisMichaelPerezSantiago commented on June 5, 2024

@antfu ,

Here is the repo

To run the project you just have to write

npm run start

from vue-demi.

antfu avatar antfu commented on June 5, 2024

I don't think you can use @vue/composition-api in bare node environment. You might need to setup a Vue project to test out your plugin.

from vue-demi.

ChrisMichaelPerezSantiago avatar ChrisMichaelPerezSantiago commented on June 5, 2024

@antfu ,

Any starter template that you recommend?

from vue-demi.

Related Issues (20)

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.