Replies: 4 comments 6 replies
-
Hey @davidbani. Is
Hope it helps |
Beta Was this translation helpful? Give feedback.
-
@davidbani Did you manage to get this working? Also having the same issue trying to import a local dependency (from a monorepo). @danilowoz is there a working example for this scenario? Am a little confused by this particular part: "/node_modules/fake-library/index.js": Would the dependency implementation not need to be this? |
Beta Was this translation helpful? Give feedback.
-
I just wrote a new guide on the Sandpack documentation about how to make it work. Feel free to leave any feedback here https://sandpack.codesandbox.io/docs/guides/local-dependencies |
Beta Was this translation helpful? Give feedback.
-
Hi @danilowoz I did import the raw build of my DS:
and mocked the library in the sandpack files:
But somehow sandpack tries to find out the dependency inside the mocked package, ignoring that the mocked package is the dependency. I have the following message:
Here the '@design-system/react' should not be relative to '/node_modules/@design-system/react/index.js' since in the guide you gave the first is an alias of the second, right ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the best way to include an NX package? For example, including
@the-nx-package/ui
incustomSetup
does not fetch the dependency.Error:
Could not fetch dependencies, please try again in a couple seconds
Is there a way around this issue?
Beta Was this translation helpful? Give feedback.
All reactions