svelte-modals icon indicating copy to clipboard operation
svelte-modals copied to clipboard

Unable to resolve path to module 'svelte-modals'.eslintimport/no-unresolved

Open dimahalaiskiy opened this issue 1 year ago • 1 comments

My eslint getting error: Unable to resolve path to module 'svelte-modals'.eslintimport/no-unresolved

The funny thing that it still works correctly

"svelte": "^4.2.0", "svelte-modals": "^1.3.0",

dimahalaiskiy avatar Sep 29 '23 14:09 dimahalaiskiy

I also have issue with importing the module after upgrading to 1.3.0 but I get typescript error message. I temporarily solved it by adding a 'default' export to the package.json file, like this:

  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "svelte": "./dist/index.js",
      "default": "./dist/index.js"
    }
  },

CogmedAppflow avatar Oct 05 '23 10:10 CogmedAppflow