"does not provide an export named 'Component' " error

I've been working on this bug for nearly a week and I can't make sense of what's going on: When I run this monorepo project and fire up the dev server things seem to work ok, but then I get this error:
SyntaxError: The requested module '/_nuxt/@fs/Users/laurie/WorkNow/.../project/node_modules/.pnpm/@[email protected]/node_modules/@firebase/component/dist/index.cjs.js' does not provide an export named 'Component'
SyntaxError: The requested module '/_nuxt/@fs/Users/laurie/WorkNow/.../project/node_modules/.pnpm/@[email protected]/node_modules/@firebase/component/dist/index.cjs.js' does not provide an export named 'Component'
I've tried fiddling around with the versions of different packages etc but nothing seems to work. I'm using Nuxt together with firebase and Vuefire.
Any ideas what I could investigate to try to find the source of the error?
2 Replies
ローリー Laurie
I can still build the project. It only seems to happen when running the nuxt dev server If I install with npm I do not get this error, but if I install with pnpm this comes up
manniL
manniL5mo ago
Did you try shamefully hoist with pnpm?
Want results from more Discord servers?
Add your server