Open crutchcorn opened 3 years ago
Before I released v2.0.1 (yarn link), I included it on 2 other vue3 projects and it worked? Have you tried transpileDependencies?
Were you testing with SSR apps? It worked fine for my app prior to being SSR
I'm using Vite SSR with default @vite/plugin-vue
configuration
in nuxt 3 have same issue
Anyone have an idea why?
@EvodiaAut @crutchcorn
<client-only>
<marquee-text>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna.
</marquee-text>
</client-only>
components: {
MarqueeText: () => import('vue-marquee-text-component'),
},
@d4rkr3pt0r @crutchcorn Looks like we can close the ticket?
@d4rkr3pt0r @crutchcorn Looks like we can close the ticket?
I think an ESM build would be sufficient to avoid this error. When using the Vue file itself for importing, no issue arises. See this codesandbox
Old: I would suggest to change the logic so platform-specifc APIs are only access when rendering the component, not already during the import! ☺️ See my post for more info.
Funnily, right after we published v
2.1
, I migrated my app to use Vite for SSR.After doing so, I started getting the following errors:
However, if I import the
src
file itself:Rather than the final build, I get no such errors.
As such, this seems to me like a build setup error.