-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Move @types/react-reconciler to dependencies #2123
Move @types/react-reconciler to dependencies #2123
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 9263a40:
|
This feels strange. I've used r3f for ages with TS without facing this build error. Are you using a special build set up? Also, it was my understanding that types should always be a dev dependency? |
That likely means you have I created a quick repro to show the error with a very simple CRA app. If you take a look at the last CI build you can see it failing with these errors. As for whether types packages go in dependencies or devDependencies, if the libraries declaration files depend on the types from a certain package then the types package should go in dependencies (1) (2). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no issues with this change then.
@Methuselah96 could you re-target to v8? or both? we're awaiting the r18 release and move forward with the v8 branch. this would cause another merge conflict. |
Should be easier to mirror the fix for v7 now. Thanks. |
The built declaration files depend on
@types/react-reconciler
. Here are the build errors without it: