You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm and yarn work fine, but pnpm throws the following error.
✓ 3 modules transformed.
[vite:vue] [@vue/compiler-sfc] Failed to resolve import source "@prosekit/vue".
/home/projects/nbwijjbqo.github/node_modules/prosekit/dist/_tsup-dts-rollup.d.ts
1 | import { addMark } from '@prosekit/core';
2 | import { AddMarkStep } from '@prosekit/pm/transform';
| ^^^^^^^^^^^^^^^^
3 | import { AddNodeMarkStep } from '@prosekit/pm/transform';
4 | import { AllSelection } from '@prosekit/pm/state';
file: /home/projects/nbwijjbqo.github/src/comp.vue
error during build:
Error: [@vue/compiler-sfc] Failed to resolve import source "@prosekit/vue".
It seems that the build would be fine if I remove the defineProps<VueNodeViewProps> in src/comp.vue.
While this could be a bug on the pnpm, this error is thrown by @vue/compiler-sfc, so I am submitting the issue here so that maybe the Vue team could check it out and give some more information.
(I don't have a link for bun because I cannot get bun installed in stackblitz. However, when I test bun locally, it works fine too).
What is expected?
No error
What is actually happening?
[vite:vue] [@vue/compiler-sfc] Failed to resolve import source "@prosekit/vue".
Vue version
3.4.14
Link to minimal reproduction
https://github.com/issueset/vue-sfc-pnpm-issue
Steps to reproduce
Open the following three links. They are the same minimal repo with different package managers.
npm
andyarn
work fine, butpnpm
throws the following error.It seems that the build would be fine if I remove the
defineProps<VueNodeViewProps>
insrc/comp.vue
.While this could be a bug on the
pnpm
, this error is thrown by@vue/compiler-sfc
, so I am submitting the issue here so that maybe the Vue team could check it out and give some more information.(I don't have a link for
bun
because I cannot getbun
installed in stackblitz. However, when I testbun
locally, it works fine too).What is expected?
No error
What is actually happening?
[vite:vue] [@vue/compiler-sfc] Failed to resolve import source "@prosekit/vue".
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: