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
The package at "node_modules/axios/dist/node/axios.cjs" attempted to import the Node standard library module "url".
It failed because the native React runtime does not include the Node standard library.
If I remove the enablePackageExports, it won't raise the error.
I tried to install the package url, but it will raise same error but for package http. This new error cannot be fixed even I install it
yarn add http
What is the expected behavior?
can use axios or is there any way to make enablePackageExports skip axios package only
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
node: v20.3.1
yarn: 4.2.2
metro: 0.80.9 (tried to install this one to know if it fixes the problem or not)
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
I just wanna ask a solution, but there is no discussion in this project
What is the current behavior?
I am using expo monorepo, I create a custom metro config and enable package exports
When start the project, react-native will raise
If I remove the
enablePackageExports
, it won't raise the error.I tried to install the package
url
, but it will raise same error but for packagehttp
. This new error cannot be fixed even I install itWhat is the expected behavior?
can use axios or is there any way to make
enablePackageExports
skipaxios
package onlyPlease provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
node: v20.3.1
yarn: 4.2.2
metro: 0.80.9 (tried to install this one to know if it fixes the problem or not)
The text was updated successfully, but these errors were encountered: