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
I have written a component named LiveAvatar in slidev-theme-viplay, and it works well in the theme's project. I published this theme to npm and used LiveAvatar in a slidev project, unfortunately i get this error
Uncaught (in promise) SyntaxError: The requested module '/node_modules/url/url.js?v=05309cba' does not provide an export named 'format'
The strange thing is that if i eject the theme to the local and it works again, even if I reuse the npm package as the theme.
Then i try to use the component Vitar(same as LiveAvatar, works in vue+vite project) directly in the slidev project, i get the same error.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have written a component named LiveAvatar in slidev-theme-viplay, and it works well in the theme's project. I published this theme to npm and used LiveAvatar in a slidev project, unfortunately i get this error
Uncaught (in promise) SyntaxError: The requested module '/node_modules/url/url.js?v=05309cba' does not provide an export named 'format'
The strange thing is that if i eject the theme to the local and it works again, even if I reuse the npm package as the theme.
Then i try to use the component Vitar(same as LiveAvatar, works in vue+vite project) directly in the slidev project, i get the same error.
I don't know which one is the problem:
reproduce in demo
viplay
in slides.md and $ npm run dev (ok)set
Display
toTrue
after each above processIt confused me for days, anyone help me pls???!!! @antfu
Beta Was this translation helpful? Give feedback.
All reactions