You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enzyme depends on Cheerio which depends on Parse5, and Parse5 lists @types/node as a runtime dependency that gets installed with the NPM package into consuming projects. @types/node conflicts with the types provided in React Native projects and possibly other project types.
Expected behavior
Parse5 does not even use TypeScript AT ALL so it shouldn't be including ANY @types packages.
Builds of React Native projects should work, not fail, when using TypeScript.
The fix is simple: either remove this @types dependency from parse5 or move it from a runtime dependency to a dev dependency as in the following pull request for parse5:
Issue first reported to parse5 in November, 2017 and the active unhelpfulness of the maintainer to remove something that provides no benefit to them but actively hurts others is documented here:
This isn’t the place to report this. Report it to Cheerio and to typescript (because typescript builds shouldn’t be so brittle as to fail in this scenario).
Current behavior
Using Enzyme in React Native projects causes TypeScript builds to fail with error:
Enzyme depends on Cheerio which depends on Parse5, and Parse5 lists @types/node as a runtime dependency that gets installed with the NPM package into consuming projects. @types/node conflicts with the types provided in React Native projects and possibly other project types.
Expected behavior
Parse5 does not even use TypeScript AT ALL so it shouldn't be including ANY @types packages.
Builds of React Native projects should work, not fail, when using TypeScript.
The fix is simple: either remove this @types dependency from parse5 or move it from a runtime dependency to a dev dependency as in the following pull request for parse5:
inikulin/parse5#226
Issue first reported to parse5 in November, 2017 and the active unhelpfulness of the maintainer to remove something that provides no benefit to them but actively hurts others is documented here:
inikulin/parse5#220
Please either remove the cheerio / parse5 dependencies, fork them with a fix, or get the maintainer of parse5 to fix this. Thanks!
Your environment
API
Version
Adapter
The text was updated successfully, but these errors were encountered: