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.

"export 'h' (imported as 'Vue') was not found in 'vue'" on several files

See original GitHub issue

I implemented uppy as described on the uppy/vue documentation page but without the webcam plugin like this:

<template>
  <div>
    <dashboard :uppy="uppy" />
  </div>
</template>

<script>
import { Dashboard } from '@uppy/vue'

import '@uppy/core/dist/style.css'
import '@uppy/dashboard/dist/style.css'

import Uppy from '@uppy/core'

export default {
  components: {
    Dashboard
  },
  computed: {
    uppy: () => new Uppy()
  },
  beforeDestroy () {
    this.uppy.close()
  }
}
</script>

I use storybook on the project to work on components isolated and everything seems to work fine on the frontend. But the webpack build gives me warnings that vue was not found on several files.

WARNING in ./node_modules/@uppy/vue/lib/dashboard.js 81:11-16
"export 'h' (imported as 'Vue') was not found in 'vue'

WARNING in ./node_modules/@uppy/vue/lib/dashboard-modal.js 96:11-16
"export 'h' (imported as 'Vue') was not found in 'vue'

WARNING in ./node_modules/@uppy/vue/lib/drag-drop.js 76:11-16
"export 'h' (imported as 'Vue') was not found in 'vue'

WARNING in ./node_modules/@uppy/vue/lib/progress-bar.js 73:11-16
"export 'h' (imported as 'Vue') was not found in 'vue'

WARNING in ./node_modules/@uppy/vue/lib/status-bar.js 76:11-16
"export 'h' (imported as 'Vue') was not found in 'vue'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
erubielctcommented, Aug 9, 2021

@shidcordero @kyrylo93, you guys found a workaround on this?

5reactions
shidcorderocommented, Jun 16, 2021

any update on this? I am getting this warning in my nuxt app

Read more comments on GitHub >

github_iconTop Results From Across the Web

vue.js - "export 'default' (imported as 'Vue') was not found in 'vue'
The reason this is happening is because in Vue 2, Vue provides a default export export default vue , which allows BootstrapVue to...
Read more >
VueJS 3 : "export 'default' (imported as 'Vue') was not found in ...
Im using VueJS 3 and getting this in my terminal: ERROR : "export 'default' (imported as 'Vue') was not found in 'vue' import...
Read more >
export 'default' (imported as 'Vue') was not found in 'vue'-Vue.js
The reason this is happening is because in Vue 2, Vue provides a default export export default vue , which allows BootstrapVue to...
Read more >
does not provide an export named 'vue' - You.com - You.com
The reason it didn't work is that Vue provides a named export, whereas you are trying to import it as though it had...
Read more >
WARN export 'default' (imported as 'Vue') was not found in 'vue'
Now after doing some research , I got to know that in Vue v3, Vue is not getting exported by default, instead now...
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