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
For anyone here still running into this issue after setting unstable_enablePackageExports:
iOS Bundling failed 643ms node_modules/expo-router/entry.js (3235 modules)
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.
Learn more: https://docs.expo.dev/workflow/using-libraries/#using-third-party-libraries
I've also had to add 'browser' to unstable_conditionNames. Full working metro config:
// Support @t3-oss/env-core
config.resolver.unstable_enablePackageExports = true
config.resolver.unstable_conditionNames = ['browser', ...config.resolver.unstable_conditionNames]
This library seems to use Package Exports. Support for Package Exports in Metro is only in beta: https://metrobundler.dev/docs/package-exports/. If the
unstable_enablePackageExports
is not enabled, an error will occur when attempting to import@t3-oss/env-core
, see https://github.com/koengommers/t3-env-expo-issue-reproIs there some other way to use this library in React Native without having to enable an unstable feature?
The text was updated successfully, but these errors were encountered: