Open
Description
First off
Thanks for all the amazing work! Super excited to be using Vue Demi. 🚀
The Problem:
This is likely a user error, but I'm not able to find any examples of consuming a vue-demi plugin in a Nuxt 2 application to help point me in the right direction.
Here's what I have for my package.json in my vue-demi plugin:
"peerDependencies": {
"@vue/composition-api": "^1.4.5",
"vue": "^2.0.0 || >=3.0.0"
},
"peerDependenciesMeta": {
"@vue/composition-api": {
"optional": true
}
},
"dependencies": {
"vue-demi": "^0.12.5",
},
module.exports = {
chainWebpack: (config) => {
config.externals(['@vue/composition-api', 'vue']);
},
};
And in my consuming application:
"dependencies": {
"my-vue-demi-plugin": "1.0.0",
"nuxt": "^2.15.2",
}
I'm getting the following error:
Upon further inspection, I see that there's a default
nested inside of external vue reference, which it seems that the install function isn't expecting.
What am I missing here? 🤷 🤔
Metadata
Metadata
Assignees
Labels
No labels