Skip to content

Issues with using component libraries in sveltejs/kit #885

@henryennis

Description

@henryennis

SSR is disabled inline, which bypasses the components not being SSR incompatible.

The node module clipboard-copy is used in the UI library as a depend

This is the error I am getting in my sveltekit page.

500
The requested module '/node_modules/clipboard-copy/index.js?v=3f0aa85f' does not provide an export named 'default'

SyntaxError: The requested module '/node_modules/clipboard-copy/index.js?v=3f0aa85f' does not provide an export named 'default'

Index.svelte

<script context="module">
	export const ssr = false;
</script>


<script>
	import { Button } from "carbon-components-svelte";
  </script>
  
  <Button>Primary button</Button>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions