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.

Vue 3.x - export 'config' was not found in 'vue'

See original GitHub issue

Describe the bug When trying to import the Vue UI components with import '@aws-amplify/ui-vue' in a fresh Vue 3.x app, the console throws the error message export 'config' was not found in 'vue'

To Reproduce Steps to reproduce the behavior:

  1. Create new Vue 3.x app with vue create myamplifyproject
  2. Add Amplify packages npm install aws-amplify @aws-amplify/ui-vue
  3. Import components in src/main.js
import Amplify from 'aws-amplify';
import '@aws-amplify/ui-vue';
import aws_exports from './aws-exports';

Amplify.configure(aws_exports);
  1. Start app with npm run serve

Expected behavior App to start without any errors

Additional context I guess it has to do with how Vue 3.x exports it different methods

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

11reactions
chrisleyvacommented, Sep 24, 2020

Hi @jordanranz , I am sure you are aware but Vue 3 was officially released last week. Are you aware of any work-arounds to get this import to work in a Vue 3 project?

Thank you. We appreciate your work.

8reactions
sammartinezcommented, Jan 7, 2021

Hello! I wanted to provide an update here, we are currently planning work for support of Vue 3 into the UI Components. While we can’t provide a timeline on when this will be released, this work has begun this sprint.

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 >
[Solved] export 'default' (imported as 'Vue') was not found in 'vue'
To Solve export 'default' (imported as 'Vue') was not found in 'vue' Error You just need to update Vue loader to its latest...
Read more >
Im using VueJs and Laravel8 and i want to import vue-router ...
js :"export 'VueRouter' was not found in 'vue-router'. Im using VueJs and Laravel8 and i want to import vue-router. Her is my app.js...
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