Importing packages from multipackage component ibrary results in errors: Module not found: Error: Can't resolve ... #587
Unanswered
onesneakymofo
asked this question in
General
Replies: 1 comment
-
hey how are you going with this? Managed to fix any of those errors? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all,
I am trying to take my team's component library that is written in
twin.macro
/typescript
/emotion
/storybook
and move it over to its own multipackage component library using preconstruct, yarn workspaces, and changesets.I have the component library working somewhat here:
https://github.com/onesneakymofo/takeoff (start with
yarn start-storybook
)This allows me to export all of my components as their own npm package so we can move them around however we want to.
The problem is when I publish my package and try to import it like so
I'm getting all sorts of fun errors (see below).
I feel like it is related to typescript / babel / webpack config as I switched the button to be strictly JS-related, and that works.
Here is the other app where I am importing (start with
yarn start
):https://github.com/onesneakymofo/test-app
I have tried everything including looking at the yarn worksapces example to no avail. I'm way in over my head right now as I have rarely touched
twin.macro
and I'm still learningTypescript
so any help is appreciated.Thanks.
Errors:
Beta Was this translation helpful? Give feedback.
All reactions