How to use Svelte component compiled to web-components? #844
Unanswered
chrisolsen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The svelte components compile fine to web-components, but when I try to import the svelte library into an Nx app, it seems to reference the non-compiled svelte file and the app no longer compiles.
The only way I can get things to work is to define the path within the
tsconfig.base.json
file to point to thedist/libs/svelte-com...
directory.This then works with the web-component rendering in an app, however the svelte lib then becomes disconnected from the nx project, in that I can no longer import other shared nx libraries into it.
Is there a better way to get things working without referencing the dist folder?
Beta Was this translation helpful? Give feedback.
All reactions