question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[eas][ios]: TypeError: undefined is not an object (evaluating 'n.default.currency')

See original GitHub issue

Summary

My iOS app crash immediately after open. From the Console app, I found the log is

Screen Shot 2021-05-10 at 01 59 11

I searched in bundle.ios.js, I found the line n.default.currency related to module expo-localization. Any config I was missing?

var o = t(r(d[1])),
  n = t(r(d[2])),
  l = n.default.currency;
e.currency = l;
var u = n.default.decimalSeparator;
e.decimalSeparator = u;
var c = n.default.digitGroupingSeparator;
e.digitGroupingSeparator = c;
var s = n.default.isoCurrencyCodes;
e.isoCurrencyCodes = s;
var f = n.default.isMetric;
e.isMetric = f;
var p = n.default.isRTL;
e.isRTL = p;
var v = n.default.locale;
e.locale = v;
var y = n.default.locales;
e.locales = y;
var C = n.default.timezone;
e.timezone = C;
var S = n.default.region;
e.region = S;

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

iOS

SDK Version (managed workflow only)

41.0.0

Environment

EAS Build

Reproducible demo or steps to reproduce from a blank project

None,

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
brentvatnecommented, May 10, 2021

it’s not ideal but it should be a workable temporary solution!

1reaction
giautmcommented, May 10, 2021

After symlink alls expo-* modules; my app loaded. But, It’s blank after the splash screen loaded. Then, I found this error on my sentry. So, I have to publish the app first, then run eas build?

{"message":"Experience \"@xxxx/xxxx\" for platform \"ios\" and release channel \"prod-sdk-41-staging\" does not exist or is not published.","errorCode":"EXPERIENCE_NOT_FOUND","metadata":{"fullName":"@xxxx/xxxx","platform":"ios","sdkVe..

Update: After I fix all issues with my code (missing expo-asset, expo-font). Now, the app works normally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"TypeError: undefined is not an object (evaluating '_expo ...
Welcome to Expo! This code has some problems. 1, To export class use “export default Class” instead of “export Class” export default.
Read more >
TypeError: undefined is not an object (evaluating 't ... - GitHub
Description App is running properly without any error in debug mode.but its crashing in release mode after splash screen. and also when i'm ......
Read more >
undefined is not an object (evaluating '_expo.default.Font ...
[Solved]-"TypeError: undefined is not an object (evaluating '_expo.default.Font')]" facing this error when asynchronously loading the font-React Native.
Read more >
Content - 3811e52cdfcda707d47b0ed2f8fb560e94e67923
Select below a type of object currently browsed in order to display its associated SWHID ... do not overwrite the default `$isEmpty()` method...
Read more >
Testing - Release Notes - Liferay Issues
[LPS-95149] - [Investigation] The Data Provider is not being shown when ... Uncaught TypeError: Cannot read property 'AssetEntry' of undefined - when using ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found