-
Notifications
You must be signed in to change notification settings - Fork 72
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
Change deps to keep in preinstall script #852
Conversation
Signed-off-by: Matt Provost <[email protected]>
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.
LGTM, but I'm not sure if we should remove react
from typesToKeep
, what type errors are consoled, and at what stage? I can't fully build it because of the eui_chart_theme
file. I'm getting the next error:
ERROR in ./entry.js
Module not found: Error: Can't resolve '@elastic/eui/dist/eui_charts_theme' in '/Users/sergeymyssak/Desktop/OpenSearch-Dashboards/packages/osd-ui-shared-deps'
But it's not a blocker anyway to merge this PR.
Signed-off-by: Matt Provost <[email protected]> (cherry picked from commit 52abc57) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
The error you are getting is odd; @BSFishy could you please take a look at this with Sergey? |
Before this change, if you tried to run
Adding
So the error message isn't actually any useful in figuring out the root cause, but I've luckily run into a similar case previously to be able to diagnose this. I admit that ideally we're providing accurate types with OUI, however given that it's a React component library, we can reasonably assume that clients will be using React, and if they need React types, they'll specify the version they need on their end. For example, Typescript should use the types that OSD provides since OUI doesn't provide any.
Yeah, this is merging into |
(cherry picked from commit 52abc57) Signed-off-by: Matt Provost <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Adds deps to keep for deps that are needed in a local OUI Dashboards setup. Also removes
@types/react
, as it causes type errors in Dashboards with differently typed versions of React.Check List
yarn lint
yarn test-unit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.