Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Importing a module throws "Uncaught ReferenceError: exports is not defined" in browser #265

Description

@akshat46

I am not sure if I am missing something obvious but I couldn't figure out how to fix this.

Reproducible

  • yarn add grid stack
  • added imports in App.svelte
  • yarn dev

Trying to import a node_module that uses exports throws exports not defined in browser console. I thought commonjs should be taking care of this but not sure. The same seems to work out of the box with svelte-webpack

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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