expo start failed after SDK 41 upgrade - Unable to resolve module

I have got this error after running app in expo go:

Failed building JavaScript bundle.
Unable to resolve module ./tagtypes from /mnt/data/git/inotessimplereact/node_modules/domutils/lib/index.js: 

None of these files exist:
  * node_modules/domutils/lib/tagtypes(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
  * node_modules/domutils/lib/tagtypes/index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)

Expo CLI 4.4.3 environment info:
System:
OS: Linux 5.11 Manjaro Linux
Shell: 5.1.0 - /bin/bash
Binaries:
Node: 15.14.0 - ~/.nvm/versions/node/v15.14.0/bin/node
npm: 7.7.6 - ~/.nvm/versions/node/v15.14.0/bin/npm
npmPackages:
expo: ^41.0.0 => 41.0.1
react: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz => 0.63.2
Expo Workflow: bare

Hey @wennaspeedy, does this occur with a newly created project? Also, please switch to a production version of Node. You’re currently using an experimental version which is not officially supported by our CLIs. (Even numbers are production versions – so you’ll want to switch to 14.x)

Cheers,
Adam

I switched to 14:

 Expo CLI 4.4.3 environment info:
    System:
      OS: Linux 5.11 Manjaro Linux
      Shell: 5.1.0 - /bin/bash
    Binaries:
      Node: 14.16.1 - ~/.nvm/versions/node/v14.16.1/bin/node
      npm: 6.14.12 - ~/.nvm/versions/node/v14.16.1/bin/npm
    npmPackages:
      expo: ^41.0.0 => 41.0.1 
      react: 16.13.1 => 16.13.1 
      react-native: https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz => 0.63.2 
    Expo Workflow: managed

The same, but newly created project works …

My dependencies:

  "dependencies": {
    "@react-native-community/cli": "^4.14.0",
    "@react-native-community/netinfo": "6.0.0",
    "expo": "^41.0.0",
    "expo-application": "~3.1.2",
    "expo-background-fetch": "~9.1.0",
    "expo-linear-gradient": "~9.1.0",
    "expo-localization": "~10.1.0",
    "expo-notifications": "~0.11.6",
    "expo-task-manager": "~9.1.0",
    "expo-updates": "~0.5.4",
    "i18n-js": "^3.8.0",
    "jest": "~25.2.6",
    "native-base": "^2.13.2",
    "native-color-picker": "^1.3.5",
    "randomcolor": "^0.6.2",
    "react": "16.13.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz",
    "react-native-hook-use-notification": "^1.0.42",
    "react-native-loading-spinner-overlay": "^2.0.0",
    "react-native-pell-rich-editor": "^1.7.0",
    "react-native-render-html": "^5.1.0",
    "react-native-side-menu-updated": "^1.3.1",
    "react-native-simple-toast": "^1.1.3",
    "react-native-swipe-list-view": "^3.2.6",
    "react-native-vector-icons": "^8.1.0",
    "react-native-webview": "11.2.3",
    "react-test-renderer": "16.13.1",
    "react-xml-parser": "^1.1.8"
  },```

this is unrelated to expo:

Unable to resolve module ./tagtypes from /mnt/data/git/inotessimplereact/node_modules/domutils/lib/index.js: 

maybe domutils lib isn’t working? you can try using standard debugging techniques like this to dig deeper

My fault - I downgraded to nvm 14, then upgrade expo and it seems work :slight_smile:

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.