Is there a way to generate a component with Vue 2 using Bit? Right now, seems like creating a component comes with Vue 3 as a peerDependency (which is fine since Vue 2 is going to be out of support by December) but I'm asking if there's a specific version to set or something to start developing components using Vue 2?
Bit compatible with Vue 2?
117 Views Asked by frustrateddeveloper At
2
There are 2 best solutions below
0
itaymendel
On
No, Bit.dev does not support Vue 2.0
Support for Vue is rather recent, and as such only available from Vue 3 and up. Please consult the documentation.
Related Questions in VUE.JS
- jqBootstrapValidation() is not a function
- In Vue.js, change value of specific attribute for all items in a data array
- Vue.js - How to handle all elements with the same selector?
- How can I use Elixir + Vueify?
- Bind function on newly created element
- Vue.js Passing data to content scope
- Updating the DOM with change in an object (vue.js) - binding not working?
- websocket + vuejs: screen flickering, visible mustache code
- Vue.js nested v-repeat: How to access parent $index inside child?
- VueJS - trouble understanding .$set and .$add
- Difference between two similar functions, why is one working and the other not
- Display unescaped HTML in Vue.js
- Mouseover or hover vue.js
- vuejs: Trying to focus the input using v-el directive
- Vue.js component issue
Related Questions in VUEJS2
- How to override scoped styles in Vue components?
- Tabbed navigation in Vue.Js
- Best way to implement history function inside Vue.js modal
- Vue.js and masonry - different behavior on local and remote
- v-for prop value not getting updated with bootstrap modal
- Vuejs 2 removing from array (splice) not animating with transition
- How can i bind input to object in vue.js
- Animate using custom directive not working
- <transition> can only be used on a single element
- How to reuse a method: define in main object and call from all component in VueJS
- Vue.js: How can I update a single item in a "list" - computed property?
- How to obtain children components inside Vue.js app
- Why doesn't 'updated' get fired for a component when it has an array prop that is changed?
- Vue $refs and kebab case
- Is there any way to let directive listen to its component's event in vue 2.0?
Related Questions in BIT.DEV
- Installing dependencies for a Bit component that uses an env
- Failed when install bit in Windows
- Is there a way to chain Envs in Bit?
- Bit compatible with Vue 2?
- Can Bit.dev support a mix of React and Angular Microfrontends?
- How to add a ThemeProvider to bit.dev
- React App: Cannot find module 'react-dom/client' or its corresponding type declarations
- How disable tsconfig.json autogeneration?
- Bit build throws an error if a component uses external library like Material UI?
- How to add external styles to Bit dev application or components
- How to undo what was executed from an npx command package?
- Bit.dev component upload failing
- Is it possible to use Bit without a bit.dev account?
- How do I effectively npm link when using bit.dev?
- Can't resolve 'react/jsx-runtime' on Bit.dev
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Assuming you already install Bit by a
npm install bit-bin --global.First, navigate to your project directory and initialize Bit.
Create a component or generate using
vue-generate-component.In your component's
package.jsonfile, specify dependency like;Track the component using bit add >
bit add src/components/your-component.Once you've made changes to your component, you can tag it;
Finally, you can export your component to a remote scope by a
bit export user-name.scope-name.*Replace
user-nameandscope-namewith your actual Bit username and scope name."Note that while Bit supports Vue 2, it's recommended to start using Vue 3 for new projects as Vue 2 is going to be out of support by December 2023."