-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
ra-core package does not build due to missing query-string type definitions #5128
Comments
I just tried to install and build this package using the commit you posted (https://github.com/BowlingX/ra-postgraphile/tree/34962d0837f233cdf19608c3869756b960544de9) and it works fine. I did not see any error |
Do you have Here is a small repository that reproduces this: https://github.com/hjr3/ra-core-test If you look at hjr3/ra-core-test#1 you will see that Travis CI is failing that build due to this error. |
@hjr3 I reproduced your issue. Thanks for the Github repository. |
We're using an older version of query-string because the new one doesn't support IE11. As far as I understand, the problem comes from the fact that our dependency on "@types/query-string" is a devDependency, so it is not installed when you use ra-core as a dependency. I see 3 possible solutions:
Any insights? |
@fzaninotto IE11 has only one year left before Microsoft team stops to support it (https://death-to-ie11.com). We can do the same and migrate For the moment, we can let users of |
We opt for solution 3. As ra-core isn't documented, and you can get every ra-core component and hook from react-admin, we consider that using ra-core directly is advanced (and unsupported) usage. If you know enough react-admin to do that, you should probably be able to add the right types definition. |
I was not aware that using |
you can use ra-core, but you should know how to use it! |
What you were expecting:
The ra-core package to build
What happened instead:
Steps to reproduce:
Create a new repository with the following dependency:
"ra-core": "^3.7.1"
You can also try to build https://github.com/BowlingX/ra-postgraphile/tree/34962d0837f233cdf19608c3869756b960544de9 to see the error.
Other information:
I am fairly certain this has to do with ra-core having a dependency on
@types/query-string
, but that npm package is a stub package: https://www.npmjs.com/package/@types/query-string . Also, https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/query-string does not exist.I noticed #4173 downgraded the version of
query-string
to a version that does not publish its own types.I was able to temporarily work around this by including the latest version of
query-string
as a top-level dependency.The text was updated successfully, but these errors were encountered: