Skip to content

Some random fixes - #133

Merged
Jag96 merged 27 commits into
masterfrom
tgolen-random-fixes
Aug 14, 2020
Merged

Jag96 merged 27 commits into
masterfrom
tgolen-random-fixes

Conversation

@tgolen

@tgolen tgolen commented Aug 13, 2020 •

Copy link
Copy Markdown
Contributor
  • Injects the dev report IDs in a different manner
  • Corrects the name of the collectionID param
  • Uses the recommended method for the display name of an HOC
  • Fixes a reference for state that was a little wonky

It's best to review with whitespace changes turned off: https://github.com/AndrewGable/ReactNativeChat/pull/133/files?diff=unified&w=1

@tgolen
tgolen requested a review from Jag96 August 13, 2020 03:49
@tgolen tgolen self-assigned this Aug 13, 2020
@Jag96

Jag96 commented Aug 13, 2020

Copy link
Copy Markdown
Contributor

I'm seeing the following error when running npm run web on this branch (master works fine)

SyntaxError: Unexpected token 'export'
    at wrapSafe (internal/modules/cjs/loader.js:1116:16)
    at Module._compile (internal/modules/cjs/loader.js:1164:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
    at Module.load (internal/modules/cjs/loader.js:1049:32)
    at Function.Module._load (internal/modules/cjs/loader.js:937:14)
    at Module.require (internal/modules/cjs/loader.js:1089:19)
    at require (internal/modules/cjs/helpers.js:73:18)
    at Object.<anonymous> (/Users/joegambino/Expensidev/ReactNativeChat/webpack.dev.js:4:19)
    at Module._compile (internal/modules/cjs/loader.js:1200:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ReactNativeChat@1.0.1-1 web: `webpack-dev-server --open --config webpack.dev.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ReactNativeChat@1.0.1-1 web script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/joegambino/.npm/_logs/2020-08-13T16_45_34_913Z-debug.log

which points to const devConfig = require('./src/CONFIG.DEV'); in webpack.dev.js.

Are you seeing this locally? Just confirming this isn't an issue on my end.

@tgolen

tgolen commented Aug 13, 2020

Copy link
Copy Markdown
Contributor Author

Hmm, let me try

@tgolen

tgolen commented Aug 13, 2020

Copy link
Copy Markdown
Contributor Author

Oh, I know why. Change your config file to look like this (using module.exports)

module.exports = {
    // Add a comma separated list of report IDs here to load into the LHN
    REPORT_IDS: '35,29,123123123',
};

I'll update the example file

@Jag96 Jag96 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is working fine for me on web, however, on iOS I see this error on startup (On master this gets through to the allSettled before throwing an error). Can you confirm?

Comment thread src/IONKEYS.js
CREDENTIALS: 'credentials',
REPORT: 'report',
REPORT_HISTORY: 'report_history',
REPORT_ACTION: 'reportAction',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this referenced anywhere, is there another place this can be used that isn't obvious? Same for REPORTS

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are cleaned up in my active branch, so you can ignore this for now.

@tgolen

tgolen commented Aug 13, 2020

Copy link
Copy Markdown
Contributor Author

Yeah, Andrew reported that crash as well and we are discussing it over here: #127

@AndrewGable

Copy link
Copy Markdown
Contributor

Closes #126

@Jag96 Jag96 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Jag96
Jag96 merged commit e73e42f into master Aug 14, 2020
@Jag96
Jag96 deleted the tgolen-random-fixes branch August 14, 2020 04:31
mountiny pushed a commit that referenced this pull request Feb 18, 2025
…act-native-modal-refactor-Vkuba

adding some types, and do some refactor
@github-actions github-actions Bot mentioned this pull request Feb 19, 2025
56 tasks done
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/Jag96 in version: 9.1.1-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
🤖🔄 android HybridApp 🤖🔄 success ✅
🍎🔄 iOS HybridApp 🍎🔄 success ✅

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/francoisl in version: 9.1.1-6 🚀

platform result
🤖 android 🤖 true ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
🤖🔄 android HybridApp 🤖🔄 failure ❌
🍎🔄 iOS HybridApp 🍎🔄 failure ❌

sajal101agrawal pushed a commit to sajal101agrawal/expensify-app that referenced this pull request Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants