Comments (7)
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.
@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.
@antfu ,
I removed the @vue/composition-api
package and then also removed the node_module
along with the package-lock
.
Then I did npm instal
l, 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.
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.
@antfu ,
Here is the repo
To run the project you just have to write
npm run start
from vue-demi.
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.
@antfu ,
Any starter template that you recommend?
from vue-demi.
Related Issues (20)
- The requested module 'vue-demi' does not provide an export named 'hasInjectionContext' HOT 6
- Vue 2.6: Error "VueCompositionAPI.getCurrentInstance is not a function" in hasInjectionContext() HOT 1
- Pinia2.1.3 + vue3.3.4 does not work: hasInjectionContext is not defined HOT 6
- about 2.7 exports Vue.util.warn HOT 2
- Remove peerDependencies
- Can't use Vue 2 library in Vue 3 HOT 1
- The requested module 'vue-demi' does not provide an export named 'computed' HOT 3
- Packaged a custom hook with rollup, ref did not unpack it automatically in the template HOT 2
- vue3.3 + ts, when v-for the computed array, the item type reference error
- Uses the wrong vue version in monorepo HOT 4
- How we resolve dependency issue for ? HOT 1
- v0.14.5 recently overwritten? and v0.14.6 does not work... HOT 11
- vue-demi-fix is missing HOT 5
- 这个文件前边都是es5语法,最后加的这一行箭头函数让我们构建时不得不对vue-demi单独加一条适配规则 HOT 1
- `postinstall` script doesn't play well with `pnpm` on Windows HOT 8
- vue.use 和 vue.default.use问题导致报错 HOT 1
- [HELP] The requested module '/node_modules/.vite/deps/vue.js?v=3af26c34' does not provide an export named 'Fragment'
- Reactivity loss when using with @vue/compat HOT 1
- TypeScript got incorrect vue version with pnpm workspace HOT 1
- Refactor with typescript ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-demi.