nuxt: FATAL ERROR: v8::FromJust Maybe value is Nothing.

Environment

  • Operating System: Linux
  • Node Version: v14.18.1
  • Nuxt Version: 3-3.0.0-27234368.47ea41d
  • Package Manager: Yarn
  • Bundler: Webpack
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Steps to reproduce

  1. Install a fresh Nuxt 3
  2. Delete app.vue
  3. Run yarn dev -o
  4. Create ./pages directory
  5. See error
ℹ Directory pages/ created. Restarting nuxt...                                                                     21:24:20
FATAL ERROR: v8::FromJust Maybe value is Nothing.
 1: 0xa389b0 node::Abort() [/usr/local/bin/node]
 2: 0x96e0af node::FatalError(char const*, char const*) [/usr/local/bin/node]
 3: 0xbb773a v8::Utils::ReportApiFailure(char const*, char const*) [/usr/local/bin/node]
 4: 0xa3c19d node::fs::FileHandle::CloseReq::Resolve() [/usr/local/bin/node]
 5: 0xa3c2f9  [/usr/local/bin/node]
 6: 0x13b992d  [/usr/local/bin/node]
 7: 0x13be0b6  [/usr/local/bin/node]
 8: 0x13d0524  [/usr/local/bin/node]
 9: 0x13be9e8 uv_run [/usr/local/bin/node]
10: 0xafab43 node::worker::Worker::Run() [/usr/local/bin/node]
11: 0xafb5f8  [/usr/local/bin/node]
12: 0x7f176d5e5609  [/lib/x86_64-linux-gnu/libpthread.so.0]
13: 0x7f176d50c293 clone [/lib/x86_64-linux-gnu/libc.so.6]
Aborted (core dumped)
error Command failed with exit code 134.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Expected behaviour

Restart Nuxt without error.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 11
  • Comments: 32 (14 by maintainers)

Most upvoted comments

I also encounter a similar issue with @nuxt/bridge:

FATAL ERROR: v8::FromJust Maybe value is Nothing.
 1: 0x101326b05 node::Abort() (.cold.1) [/Users/tahul/.volta/tools/image/node/14.18.0/bin/node]
 2: 0x1000b7129 node::Abort() [/Users/tahul/.volta/tools/image/node/14.18.0/bin/node]
 3: 0x1000b729f node::OnFatalError(char const*, char const*) [/Users/tahul/.volta/tools/image/node/14.18.0/bin/node]
 4: 0x100203b40 v8::V8::FromJustIsNothing() [/Users/tahul/.volta/tools/image/node/14.18.0/bin/node]
 5: 0x100007ead node::UVException(v8::Isolate*, int, char const*, char const*, char const*, char const*) [/Users/tahul/.volta/tools/image/node/14.18.0/bin/node]
 6: 0x1000bbc82 node::fs::FSReqAfterScope::Reject(uv_fs_s*) [/Users/tahul/.volta/tools/image/node/14.18.0/bin/node]
 7: 0x1000bbf3f node::fs::AfterOpenFileHandle(uv_fs_s*) [/Users/tahul/.volta/tools/image/node/14.18.0/bin/node]
 8: 0x100a0b478 uv__work_done [/Users/tahul/.volta/tools/image/node/14.18.0/bin/node]
 9: 0x100a105c3 uv__async_io [/Users/tahul/.volta/tools/image/node/14.18.0/bin/node]
10: 0x100a241cc uv__io_poll [/Users/tahul/.volta/tools/image/node/14.18.0/bin/node]
11: 0x100a10b31 uv_run [/Users/tahul/.volta/tools/image/node/14.18.0/bin/node]
12: 0x100159669 node::worker::Worker::Run() [/Users/tahul/.volta/tools/image/node/14.18.0/bin/node]
13: 0x10015cf5f node::worker::Worker::StartThread(v8::FunctionCallbackInfo<v8::Value> const&)::$_3::__invoke(void*) [/Users/tahul/.volta/tools/image/node/14.18.0/bin/node]
14: 0x7fff203328fc _pthread_start [/usr/lib/system/libsystem_pthread.dylib]
15: 0x7fff2032e443 thread_start [/usr/lib/system/libsystem_pthread.dylib]
error Command failed with signal "SIGABRT".

Nuxi report:

------------------------------
- Operating System: `Darwin`
- Node Version:     `v14.18.0`
- Nuxt Version:     `2.16.0-27254893.4bf7c35b`
- Package Manager:  `Yarn`
- Bundler:          `Webpack`
- User Config:      `rootDir`, `head`, `meta`, `bridge`, `components`, `colorMode`, `image`, `buildModules`, `target`, `server`, `generate`, `nitro`, `build`, `hasDocusConfig`, `hasThemeConfig`, `themeName`, `themeDir`, `css`, `plugins`, `windicss`, `hooks`, `themeConfigDefaults`, `hasTheme`
- Runtime Modules:  `-`
- Build Modules:    `@nuxt/image@0.6.0`, `@nuxt/postcss8@1.1.3`, `@docus/core@1.2.3-27252625.3ca0a93`, `@nuxt/bridge@3.0.0-27254511.41ff3b8`, `@nuxtjs/color-mode@2.1.1`, `@docus/windicss@2.0.2-27254470.9959d90`, `@nuxt/bridge@3.0.0-27254511.41ff3b
------------------------------

I don’t have a proper way to replicate this error as this spawns randomly while coding in the project.

The last time I had it was when editing a plugin, the replacement made the server crash.


Edit for additional context:

  • Sometimes I get this on server restart, and I have to delete node_modules and reinstall everything so it boots up again.
  • It seem to happen on HMR/server updates.
  • I’ve tried Node 12.x, Node 14.x, Node 16.x and have problems on all these versions.

Alright, made a reproduction without @nuxt/content v2: https://github.com/Atinux/nuxt-maybe-value-repro

You will need to save faster and more times the ~/plugins/foo.ts because I did not add any parsing logic in it, but basically it is related to memory usage.

Hello, in a somehow consistent project, we encounter a similar issue. Sometimes it happens just right after starting the dev server !

FATAL ERROR: v8::FromJust Maybe value is Nothing.
 1: 0x103301a25 node::Abort() (.cold.1) [~/.nvm/versions/node/v16.14.0/bin/node]
 2: 0x101ff70f9 node::Abort() [~/.nvm/versions/node/v16.14.0/bin/node]
 3: 0x101ff726f node::OnFatalError(char const*, char const*) [~/.nvm/versions/node/v16.14.0/bin/node]
 4: 0x10217a510 v8::V8::FromJustIsNothing() [~/.nvm/versions/node/v16.14.0/bin/node]
 5: 0x101ffa6a4 node::fs::FileHandle::CloseReq::Resolve() [~/.nvm/versions/node/v16.14.0/bin/node]
 6: 0x10200fa88 node::fs::FileHandle::ClosePromise()::$_0::__invoke(uv_fs_s*) [~/.nvm/versions/node/v16.14.0/bin/node]
 7: 0x1029c1e18 uv__work_done [~/.nvm/versions/node/v16.14.0/bin/node]
 8: 0x1029c6fdb uv__async_io [~/.nvm/versions/node/v16.14.0/bin/node]
 9: 0x1029dadcb uv__io_poll [~/.nvm/versions/node/v16.14.0/bin/node]
10: 0x1029c7561 uv_run [~/.nvm/versions/node/v16.14.0/bin/node]
11: 0x101f27f9f node::SpinEventLoop(node::Environment*) [~/.nvm/versions/node/v16.14.0/bin/node]
12: 0x10209f06e node::worker::Worker::Run() [~/.nvm/versions/node/v16.14.0/bin/node]
13: 0x1020a2a62 node::worker::Worker::StartThread(v8::FunctionCallbackInfo<v8::Value> const&)::$_3::__invoke(void*) [~/.nvm/versions/node/v16.14.0/bin/node]
14: 0x7fff5d7352eb _pthread_body [/usr/lib/system/libsystem_pthread.dylib]
15: 0x7fff5d738249 _pthread_start [/usr/lib/system/libsystem_pthread.dylib]
16: 0x7fff5d73440d thread_start [/usr/lib/system/libsystem_pthread.dylib]
error Command failed with signal "SIGABRT".

Nuxt3 v3.0.0-27420403.16e2a54 Issue observed on MacOS I cannot get a minimal reproduction…

@danielroe

Here’s the minimal reproduction I got for this issue : https://github.com/kevinmarrec/nuxt-maybe-value-repro

@nevadavid ; @bambo0cha ; @productdevbook ;

Do you guys have an idea on how to replicate this issue in a sandboxed environment ?

And how to get it 100% of the time ?

I think it would help @danielroe and @pi0 debugging this.

I tried to replicate it in my own contexts, but I fail getting a reproduction that hits this bug every time in the same place.

Yes, that’s very helpful, thanks for the link and some causes of this.

Haven’t updated this in a while but this error is a node bug and almost always conceals an underlying error/issue. So it is not necessarily attributable to an issue in Nuxt or indeed any one issue at all.

Could you try with this option in your nuxt.config:

experimental: {
  viteNode: true
}

Just came across this. Deleting the .nuxt folder fixed it for me!

Edit: it did not. But going from "nuxt": "npm:nuxt3@latest" to "nuxt": "3.0.0-rc.2" seems to work

Thanks, @kevinmarrec for making smaller repro I will also try it. However by minimal, we need a repro without dependency on any nuxt module (yours is using content v2 which likely makes it more complicated to find a root cause)

Hey @Tahul 😃 I still get this error with Nuxt Bridge. The server and client-side are compiled successfully but crash as soon as Nuxt starts.

FATAL ERROR: v8::FromJust Maybe value is Nothing.
 1: 0x101306bb5 node::Abort() (.cold.1) [/Users/nada/.nvm/versions/node/v14.17.6/bin/node]
 2: 0x1000ad6c9 node::Abort() [/Users/nada/.nvm/versions/node/v14.17.6/bin/node]
 3: 0x1000ad82f node::OnFatalError(char const*, char const*) [/Users/nada/.nvm/versions/node/v14.17.6/bin/node]

 ERROR  [worker] Unexpected identifier

  at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)

 WARN  [worker] Unexpected identifier

  at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)

Our codebase is quite large but we are using Node v14.17.6 and we followed the guideline from the documentation.