I’m in the process of transferring a project from Expo 19 to 22. I created a new project using the Expo XDE and pasted my old codebase into the new project. I then ran “npm install” to install to install the required node modules.
However, when I attempt to run the project on my Android device, I get the following error.
TypeError undefined is not an object (evaluating ‘regeneratorRuntime.mark’)
The line of code that is called out in the error is:
import * as MySagas from './sagas';
I’ve tried the technique mentioned here: https://github.com/redux-saga/redux-saga/issues/280
However, that did not fix it.
Additionally, I’ve tried what was mentioned here: https://github.com/expo/expo/issues/519 which also failed.
Here is an example of one of the sagas that I export:
/****
* handleAPISuccess
*
*/
function* handleAPISuccess(action) {
try {
;
let message = "";
switch (action.type) {
/*switch statement internals*/
}
yield put({
type: "CLOSE_PENDING_DIALOG",
});
;
if (action.payload.type === 'success') {
yield put({
type: "SHOW_SUCCESS_DIALOG",
message: message
});
}
else {
yield put({
type: "SHOW_ERROR_DIALOG",
message: message
});
}
} catch (e) {
yield console.log('ERROR: showSuccessDialog');
}
}
export function* sagaHandleAPISuccess() {
yield takeEvery([
/*'SIGN_IN_AUTH0_USER_FULFILLED', */
'PUBLISH_STORY_FULFILLED',
'COPY_STORY_FULFILLED',
'GET_STORY_FOR_EDITING_FULFILLED',
'GET_STORY_FROM_SERVER_BY_STORY_ID_FULFILLED']
, handleAPISuccess);
}
Any help would be appreciated.