You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using bili to bundle a typescript vue component. I've bundled it but its behavior is not the expected and it's throwing these warnings when it renders:
[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "messages" [Vue warn]: $attrs is readonly.
I'm installing the library just like that:
src/plugins/vue-simplet-chat.js
import Vue from 'vue'
import Chat from 'vue-simple-chat'
Vue.use(Chat)
And then importing it in my main.js file like the other external components: import './plugins/vue-simple-chat.js'
On the other hand, I'm running this command to generate the bundle:
yarn bili --format umd,cjs,iife,esm --module-name VueSimpleChat
Hello!
I'm using bili to bundle a typescript vue component. I've bundled it but its behavior is not the expected and it's throwing these warnings when it renders:
[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "messages"
[Vue warn]: $attrs is readonly.
I'm installing the library just like that:
src/plugins/vue-simplet-chat.js
And then importing it in my
main.js
file like the other external components:import './plugins/vue-simple-chat.js'
On the other hand, I'm running this command to generate the bundle:
bili.config.ts
The entry point is the
src/index.ts
file:src/index.ts
AFAIK, those errors appear when are multiple
vue
instances. Am I doing something wrong in my build step or when I import the component in a project?Thank you in advance! 😅
The text was updated successfully, but these errors were encountered: