Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maybe broke #6

Open
AminoffZ opened this issue Aug 16, 2023 · 1 comment
Open

Maybe broke #6

AminoffZ opened this issue Aug 16, 2023 · 1 comment

Comments

@AminoffZ
Copy link

AminoffZ commented Aug 16, 2023

Hi, package looking awesome and really want to use it. I'm getting:

"Cannot use import statement outside a module".

image

I'm very inexperienced with writing packages so troubleshooting this is not going great. Could it be related to: this?

Anyway anyone has time to look at this it would be super.

EDIT:
I might have fixed it, idk if it breaks for other versions of svelte. On "svelte": "^4.0.5", adding:

  "type":"module",
  "exports": {
    ".": {
      "import": "./dist/index.mjs",
    }
  },

to the \node_modules\svelte-entity-store\package.json works. LMK if you want me to PR that.

@AminoffZ
Copy link
Author

I worked a bit on this, check out my fork. I also use boilerplate for making these entity stores persist state in localstorage. Could add option to extend this store to use that as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant