-
-
Notifications
You must be signed in to change notification settings - Fork 345
TypeScript error when installing the plugin with Vue 2.7 #1280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've got the same problem, any update on this? |
I have the same issue using :
I used this setup : export const installVuefire = () => {
Vue.use(VueFire, {
modules: [
VueFireFirestoreOptionsAPI({
// same behavior as vuefire v2
reset: true,
wait: false
}),
VueFireDatabaseOptionsAPI({
// same behavior as vuefire v2
reset: true,
wait: false
})
]
});
}; Starting the server : VITE v4.3.8 ready in 912 ms
➜ Local: http://localhost:8080/
➜ Network: use --host to expose
➜ press h to show help
✘ [ERROR] No matching export in "node_modules/.pnpm/vue-demi@0.14.5_vue@2.7.14/node_modules/vue-demi/lib/index.mjs" for import "ssrContextKey"
node_modules/.pnpm/vuefire@3.1.0_firebase@9.22.0+vue@2.7.14/node_modules/vuefire/dist/shared/vuefire.7f889637.mjs:2:37:
2 │ import { getCurrentInstance, inject, ssrContextKey, effectScope, computed, ref } from 'vue-demi';
╵ ~~~~~~~~~~~~~
/Users/demo/project/node_modules/.pnpm/esbuild@0.17.19/node_modules/esbuild/lib/main.js:1636
let error = new Error(`${text}${summary}`);
^
Error: Build failed with 1 error:
node_modules/.pnpm/vuefire@3.1.0_firebase@9.22.0+vue@2.7.14/node_modules/vuefire/dist/shared/vuefire.7f889637.mjs:2:37: ERROR: No matching export in "node_modules/.pnpm/vue-demi@0.14.5_vue@2.7.14/node_modules/vue-demi/lib/index.mjs" for import "ssrContextKey"
at failureErrorWithLog (/Users/demo/project/node_modules/.pnpm/esbuild@0.17.19/node_modules/esbuild/lib/main.js:1636:15)
at /Users/demo/project/node_modules/.pnpm/esbuild@0.17.19/node_modules/esbuild/lib/main.js:1048:25
at /Users/demo/project/node_modules/.pnpm/esbuild@0.17.19/node_modules/esbuild/lib/main.js:1512:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errors: [
{
detail: undefined,
id: '',
location: {
column: 37,
file: 'node_modules/.pnpm/vuefire@3.1.0_firebase@9.22.0+vue@2.7.14/node_modules/vuefire/dist/shared/vuefire.7f889637.mjs',
length: 13,
line: 2,
lineText: "import { getCurrentInstance, inject, ssrContextKey, effectScope, computed, ref } from 'vue-demi';",
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No matching export in "node_modules/.pnpm/vue-demi@0.14.5_vue@2.7.14/node_modules/vue-demi/lib/index.mjs" for import "ssrContextKey"'
}
],
warnings: []
}
Node.js v18.13.0
ERROR Command failed with exit code 1. Some of my researchesLooks like the import in the import { ssrContextKey } from '@vue/runtime-core'; I'm still blocked with the Vue.use(Vuefire,...) which now gives this error : |
The current plugin FYI if you are starting a new project, use Vue 3 |
I'm still receiving the following error:
from
|
In that case:
|
yes, vue-demi@0.14.5 and I'm using |
Reproduction
https://github.com/glumb/vue-firebase-setup
Steps to reproduce the bug
vue create vuefire-test
npm i firebase
,npm i vuefire
npm run serve
Expected behavior
builds without error
Actual behavior
error during build
Additional information
node -v v16.18.1
npm -v 8.19.2
The text was updated successfully, but these errors were encountered: