question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with vue3-compat-build

See original GitHub issue

Hi, I have updated my Vue 2 project to Vue 3 and I still want to continue using bootstrap-vue.

So I removed bootstrap-vue from project (via npm uninstall…) and added with:

npm install --save bootstrap-vue/bootstrap-vue#vue3-compat-build --save-prod

So now my package.json has:

"bootstrap-vue": "github:bootstrap-vue/bootstrap-vue#vue3-compat-build",

But at npm run serve I get:

This dependency was not found:

* bootstrap-vue in ./src/setup/bootstrap.setup.js

To install it, you can run: npm install --save bootstrap-vue

It refers to following import in one of my files:

import BootstrapVue from "bootstrap-vue";

@xanf

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
xanfcommented, Oct 7, 2022

@derweise are you using @vue/cli (I’m assuming from preset)

In that case you need https://cli.vuejs.org/config/#transpiledependencies

0reactions
derweisecommented, Oct 10, 2022

Thanks @xanf , transpileDependencies worked 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

What could be wrong with the Vue 3 compat build setup?
TLDR: custom events ( $listeners ) won't be automatically binded in the vue 3 compat build. It is as if all the components...
Read more >
[vue3] Support for @vue/compat mode · Issue #579 - GitHub
The implementation for Vue 3 support seems (not sure if actually is that way, but it seems so) to be stopped, or at...
Read more >
@vue/compat - npm
Overview. @vue/compat (aka "the migration build") is a build of Vue 3 that provides configurable Vue 2 compatible behavior.
Read more >
Vue 3 was a mistake that we should not repeat - Medium
In an existing large-scale application built with Vue 2, you would probably use some of the deprecated or changed APIs.
Read more >
Vue3 migration: introduce compatibilty with @vue/compat for ...
gitlab-ui as a component library is one of the key dependencies we should make running with Vue3. What does compatibility means for us?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found