Vue 3.x - export 'config' was not found in 'vue'
See original GitHub issueDescribe 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:
- Create new Vue 3.x app with
vue create myamplifyproject
- Add Amplify packages
npm install aws-amplify @aws-amplify/ui-vue
- 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);
- 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:
- Created 3 years ago
- Reactions:4
- Comments:14 (7 by maintainers)
Top 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 >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
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.
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.