Readonly issues when using vue externally (CDN)
See original GitHub issueDescribe the bug
I am receiving multiple readonly
errors form bootstrap-vue
modules when loading Vue from a CDN, the errors in question were discussed extensively in #3040.
Steps to reproduce the bug
- Load in vue via https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.runtime.js
- Import some
bootstrap-vue
components:import { BCard, BCollapse, VBToggle } from 'bootstrap-vue';
- Build a component (
UMD
format). - Open browser
- Components work as expected (more or less) but console is full of errors.
Expected behavior
No console errors.
Versions
Libraries:
- BootstrapVue: 2.1.0
- Bootstrap: 4.4.1
- Vue: 2.6.10
Environment:
- Device: Desktop
- OS: Ubuntu 18.10
- Browser: Chrome
- Version: 79.0.3945.88
Demo link
It is difficult to put together because I have a fairly custom build process, I am hoping it is obvious based on the description, if not I can try to put a demo together by just copy/pasting a built component.
Additional context
This has only become an issue in recent versions of bootstrap-vue
I think it may be to do with portal-vue
.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
"$attrs is readonly","$listeners is readonly","Avoid mutating a ...
In my case, I was migrating from a project that didn't use VueCLI. In that project, I imported vue from a CDN <script ......
Read more >Custom Directives - Vue.js
Custom directives should only be used when the desired functionality can only be achieved via direct DOM manipulation. Prefer declarative templating using built ......
Read more >Add External Scripts - Gridsome
If you want to use a external JavaScript library inside your component, you can do so by importing the package and requiring it...
Read more >Vue.js | IntelliJ IDEA Documentation - JetBrains
You can still use Vue CLI, if you choose this option IntelliJ IDEA also downloads and ... Open the HTML file with a...
Read more >Vue Integration - CKEditor 4 Documentation
editor-url; type; config; tag-name; value; v-model; read-only; throttle. Component events ... The CKEditor 4 Vue component is compatible with Vue.js 2.x.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Got it!
Needed to be:
Hey @tmorehouse,
Bizzare, I will keep looking into this and post if I find a solution.
Cheers!