Comments (5)
It should be compatible, the lib exports the .vue component directly, which uses the composition API in a way that is valid in both Vue 2 and 3.
Please let me know if you have any issues with this
from vue-fuse.
@shayneo if you check your package.json
you will see:
...
"peerDependencies": { "vue": "^2.6.10" },
...
and
"devDependencies": {
...
"vue": "^2.6.10",
...
},
Also from your package.json
, I can see "main": "src/components/VueFuse.vue",
. The Vue component exported by your lib does not make use of the composition API, which is not the problem, since it should work with Vue3 and "legacy" mode.
I'm just pointing that out since you mentioned the composition API, maybe I'm missing something here, maybe there's a different hidden branch that I should pull the package from, but so far, NPM will not let me install the package on a Vue 3 project and the exported component does not use the composition API.
from vue-fuse.
@shayneo if you check your
package.json
you will see:... "peerDependencies": { "vue": "^2.6.10" }, ...
and
"devDependencies": { ... "vue": "^2.6.10", ... },
Also from your
package.json
, I can see"main": "src/components/VueFuse.vue",
. The Vue component exported by your lib does not make use of the composition API, which is not the problem, since it should work with Vue3 and "legacy" mode.I'm just pointing that out since you mentioned the composition API, maybe I'm missing something here, maybe there's a different hidden branch that I should pull the package from, but so far, NPM will not let me install the package on a Vue 3 project and the exported component does not use the composition API.
Whoops meant to say the options api.
There is no other branch, it's intentionally exporting the .vue file which will work in 2 and 3.
Would you mind sending a link to a repo that reproduces? He happy to take a look, might just need a tweak to the peer dependency requirement.
from vue-fuse.
You don't need a repo to reproduce the error, just do the following:
- Initiate an empty project
npm init
- Install Vue3
npm install vue@next
- Try to install your package
from vue-fuse.
thanks @maxacarvalho just published 3.0.1 which should fix: #94
from vue-fuse.
Related Issues (20)
- importing bug HOT 5
- useVueFuse not reevaluating list HOT 3
- wrong tag matching in demo HOT 1
- Mobile bug HOT 1
- Site unreacheable HOT 1
- New released version of Tailwind requires change to postcss.config.js
- npm install showing error HOT 1
- Firefox finally is not a function issue when using vue-fuse HOT 1
- Add tokenSeparator to properties HOT 3
- ref for vue-fuse HOT 1
- Document search prop HOT 1
- Changing options on the fly? HOT 4
- Removing the "X" in the input HOT 2
- Fuse extended search not working HOT 1
- Vue 3 Compatibility HOT 3
- Unexpected token when importing VueFuse HOT 3
- How to remove a cross from the field HOT 1
- Syntax Error when using 'target: server' with Nuxt.js HOT 5
- Publish typescript typings HOT 4
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-fuse.