metro icon indicating copy to clipboard operation
metro copied to clipboard

serializeError is not a function

Open psamim opened this issue 3 years ago • 3 comments

Do you want to request a feature or report a bug? A bug

What is the current behaviour? I get the below error:

RuntimeError: abort(TypeError: serializeError is not a function). Build with -s ASSERTIONS=1 for more info.
    at process.abort (C:\Users\Admin\Desktop\project\my-app\node_modules\metro-hermes-compiler\src\emhermesc.js:402:15)
    at process.emit (node:events:539:35)
    at emit (node:internal/process/promises:140:20)
    at processPromiseRejections (node:internal/process/promises:274:27)
    at processTicksAndRejections (node:internal/process/task_queues:97:32)

If the current behaviour is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install and yarn test.

I created a project using expo. Then I run npm start. When I change a character, the compilation is triggered. If there is syntax error, expo and metro exit with the above error

What is the expected behaviour? To display the error and not exit, waiting for changes.

Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system. OS: Windows 10 Running React Native using expo in PowerShell, npm 8.11 node 16.16

the output of npm ls metro-hermes-compiler:

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
└─┬ [email protected]
  └─┬ @react-native-community/[email protected]
    └─┬ @react-native-community/[email protected]
      └─┬ [email protected]
        ├── [email protected]
        └─┬ [email protected]
          └── [email protected] deduped

psamim avatar Aug 24 '22 06:08 psamim

Try deleting your node_modules folder and run "yarn" afterwards

Tosey avatar Nov 03 '22 13:11 Tosey

were you able to solve the problem? I'm having the same issue

bedre7 avatar Oct 26 '23 18:10 bedre7