You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm buiding a component library, one of the component use unpic-svelte
After successfully packaging the library with sveltekit package mode I try to use it locally through pnpm link
When running the application that will use the component library I gest this
[vite] Error when evaluating SSR module /@fs/Users/matias/Development/MyLibrary/node_modules/.pnpm/@unpic+svelte@0.0.22_svelte@3.58.0/node_modules/@unpic/svelte/dist/image.svelte: failed to import "/@fs/Users/matias/Development/MyLibrary/node_modules/.pnpm/style-object-to-css-string@1.0.1/node_modules/style-object-to-css-string/dist/index.js"
|- ReferenceError: exports is not defined
at eval (/@fs/Users/matias/Development/MyLibrary/node_modules/.pnpm/style-object-to-css-string@1.0.1/node_modules/style-object-to-css-string/dist/index.js:5:23)
at instantiateModule (file:///Users/matias/Development/MyLibrary/node_modules/.pnpm/vite@4.3.4/node_modules/vite/dist/node/chunks/dep-f7d05e3f.js:54346:15)
To Reproduce
Steps to reproduce the behavior:
Crea a fresh sveltekit app
Install unpic-svelte
Create a component inside src/lib/components/MyImage.svelte that uses unpic
run pnpm package
Create another svelkit app.
run pnpm link <path-to-the-original-project>
import the package into the new app
run the new app
Expected behavior
The component imported from the "source" app should work correctly.
Screenshots
Desktop (please complete the following information):
OS: Macos
Browser chrome, safari, Arc
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm buiding a component library, one of the component use
unpic-svelte
After successfully packaging the library with sveltekit
package
mode I try to use it locally throughpnpm link
When running the application that will use the component library I gest this
To Reproduce
Steps to reproduce the behavior:
pnpm package
pnpm link <path-to-the-original-project>
Expected behavior
The component imported from the "source" app should work correctly.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: