-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
[BUG] Unable to use tooltip from within a package #1067
Comments
At first glance, this does not seem related to In case you've already tested that, and it seems it IS related to What tools are you using to bundle the first application? The one with Whenever you have the time, if you could provide a sample project (maybe easier to build 2 separate projects? not sure) it would help a lot. |
Yes I have tested it without I'm creating the package through the typescript compiler and a mix of moving files for stylesheets into a dist directory from the scripts in my package.json
I'm running I'll see if I can create a sample project for it but it will probably have to wait until the weekend. |
Not a problem. Until then, if i get the time I might try to reproduce it. |
I confirm this issue. It is problem in facebook/create-react-app#12700 Would by possible to change build format in this project to use just |
@JurajKavka if you have the time, can you please test the following. Manually edit the
Hopefully |
This is working for me (i had to change also "exports")
|
Thanks @JurajKavka We'll add a troubleshooting section with some tips to workaround this (since updating the package will override the changes). Since we're not currently planning to make any changes to the default |
The have at least 5 PRs adding the support for |
Yeah, I noticed. But maybe some day. |
This issue is stale because it has not seen activity in 30 days. Remove the |
This issue is stale because it has not seen activity in 30 days. Remove the |
This issue is stale because it has not seen activity in 30 days. Remove the |
Bug description
When referencing the tooltip inside of a package an error is displayed that says:
It works as intended when I run the app (before being packaged) locally. If I remove the tooltip from the page then page loads as intended when navigating to that page within another app using the packaged version.
Version of Package
Latest and 5.12.0
To Reproduce
Create an app that has a tooltip and then bundle it as a package with react-tooltip as a dependency.
Create a new app and install the package and reference the package app with the tooltip.
Run the new app and navigate to the page from the package.
Expected behavior
Would expect to be able to load the page and hover over the element with the tooltip
Desktop (please complete the following information if possible or delete this section):
The text was updated successfully, but these errors were encountered: