-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage / NM Issue #745
Comments
Hi @Rafcin ! Thanks for the kind words. I can't remember running into this specifically, but did a search and I 100% went to this thread at one point 🧵 : Are you using I believe I cheated awhile back and just did Yes, can confirm. Looking back at the litany of code comments in this file, I think I did this (eventually) and called it a day 😆: Let me know if after digging into it more if you still have any questions or issues. I was thinking this could be something with |
I'll test it out, I think your current config has shameful hoist off in the
packages repo and it has it on in the websites repo.
I do use pnpm, I've been using Yarn for a long time and your repo reminded
nme pnpm exists 😅 and it's sooo fast!!!!
Yea it's an odd issue hopefully the hoisting is the solution! Thank you for
the info 🙏🙏!!
Btw the way I think the way you have the config folder setup for the entire
repo is fantastic, the different tsconfigs and lint's are super clean!
…On Mon, Jul 11, 2022, 6:03 AM Jerome Fitzgerald ***@***.***> wrote:
Hi @Rafcin <https://github.com/Rafcin> ! Thanks for the kind words. I
can't remember running into this specifically, but did a search and I 100%
went to this thread at one point 🧵 :
- microsoft/TypeScript#42873
<microsoft/TypeScript#42873>
Are you using pnpm? You may want to look into hoisting and this comment
specifically:
- microsoft/TypeScript#42873 (comment)
<microsoft/TypeScript#42873 (comment)>
I believe I cheated awhile back and just did shamefully-hoist=true in
.npmrc
Yes, can confirm. Looking back at the litany of code comments in this
file, I think I did this (eventually) and called it a day 😆:
- https://github.com/JeromeFitz/websites/blob/main/.npmrc
Let me know if after digging into it more if you still have any questions
or issues. I was thinking this could be something with
next-transpile-modules depending on if your website and design-system are
in the same monorepo. But I would consider the pnpm approach to see if
that uncovers anything first.
—
Reply to this email directly, view it on GitHub
<#745 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACQCG67VLTTGPAMMLOXUXMTVTQLTZANCNFSM53FTURXQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The NPM approach didn't work unfortunately, and also, yea my design system is in the same monorepo as my site. I have the package @fox-dls/design-system set with |
Hrm. 🤔 Is your package importing the
Perhaps digging into the |
So I've modified my root ts to follow JeromeFitz/websites, I've added baseURL, preserve symlinks and everything, and the issue to the nm modules seems to be gone but the paths for different folders in the next app seem to messed up, and ts config is complaining the changelog folder in gitmoji isn't under the root? Root ts throws: And in the project itself any paths I had like the ones you have with
|
Edit I was wrong. I fixed the other issues I had the wrong TS config stuff. The hoist issue is back though. Seems it jumped from Emotion/styles to @types/react now. |
Ah, after some modifications to the TSconfig and npmrc files, I was finally able to get it to work until SWC came my way and threw a bunch of loader issues my way LOL.
After I solve the above, it should compile fine. SWC is a nightmare. |
I believe I solved the pnpm issues. The typescript configuration
And that should solve the issue. |
@JeromeFitz Have you ever ran into this error on other systems or a docker image? |
Hi @Rafcin , unfortunately (or, fortunately I guess), I have not. Aside from some initial syncing up stuff mentioned earlier. Sorry you are still having problems. I agree would be ideal to not have customizations immediately out of the gate, especially with configs. Not sure how to proceed at the moment. Do you feel this is sufficient enough as a reference issue, or do you want to dive into this even further? I was also looking at |
@JeromeFitz Hey! So I managed to solve the issue, it ended up being some issues with the tsconfig paths and Next JS was freaking out due to some dependency on the docker image I was using. In the time I was researching I also thought about some changes you might be able to make, I can open some pull requests but like next-compose is having some issues and it might be a good idea to use .reduce instead of |
Oh wow, that would be very cool if you have the time. Thanks @Rafcin! 🙌🏻 Glad you got it all sorted out on your end as well. 😅 |
Hi Jerome! I really like your repo design and I've been tinkering with it and planning to build a library for my own site using this system. As I was messing around with it, I ran into this issue when building the NextJS app. I keep getting these inference issues that point back to my design system and I'm wondering if you ever run into something like this:
I thought it was an issue with nm being pointed wrong but I'm not actually sure what this is. I wiped node modules and everything. The components and everything are also written in the same style and file structure as you have written them.
The text was updated successfully, but these errors were encountered: