carbon-design-system / carbon-components-svelte

Svelte implementation of the Carbon Design System
https://svelte.carbondesignsystem.com
Apache License 2.0
2.68k stars 261 forks source link

Unable to resolve *.js imports #1925

Closed metonym closed 6 months ago

metonym commented 6 months ago

Using the preprocessor, I'm getting this resolve error when attempting to import breakpoints from the source *.js` file.

Internal server error: Failed to resolve import "carbon-components-svelte/src/Breakpoint/breakpoints.js" from "src/App.svelte".

We need to explicitly map *.js files in the exports map in package.json:

"./src/*.js": {
  "types": "./types/*.d.ts",
  "import": "./src/*.js"
},
metonym commented 6 months ago

Fixed in v0.84.0