framework icon indicating copy to clipboard operation
framework copied to clipboard

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

Open nevadavid opened this issue 2 years ago • 28 comments

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.

nevadavid avatar Oct 12 '21 19:10 nevadavid

Is it still prevalent when creating an index.vue file in the /pages directory?

HenrijsS avatar Oct 12 '21 19:10 HenrijsS

It is still running, but I got some new error:

ℹ Directory pages/ created. Restarting nuxt...                                                                     06:55:07

 WARN  [worker] exited with code: 1                                                                                06:55:07

  at Worker.<anonymous> (node_modules/@nuxt/nitro/dist/index.mjs:1694:18)
  at Object.onceWrapper (events.js:520:26)
  at Worker.emit (events.js:412:35)
  at Worker.emit (domain.js:475:12)
  at Worker.[kOnExit] (internal/worker.js:278:10)
  at Worker.<computed>.onexit (internal/worker.js:203:20)

nevadavid avatar Oct 13 '21 05:10 nevadavid

I have same errors after saving "nuxt.config.ts". After installation did not create or change anything.

nuxt.config.ts updated. Restarting nuxt...                                                                                                                                                                          13:41:53
npm[13144]: c:\ws\src\node_file-inl.h:160: Assertion `finished_' failed.
 1: 00007FF63F30412F napi_wrap+133311
 2: 00007FF63F29DD06 SSL_get_quiet_shutdown+63062
 3: 00007FF63F29E081 SSL_get_quiet_shutdown+63953
 4: 00007FF63F28817E v8::base::CPU::has_sse+33630
 5: 00007FF63F2895E3 v8::base::CPU::has_sse+38851
 6: 00007FF63F364E47 uv_timer_stop+1207
 7: 00007FF63F36141B uv_async_send+331
 8: 00007FF63F360BAC uv_loop_init+1292
 9: 00007FF63F360D4A uv_run+202
10: 00007FF63F1DCD3D v8::internal::interpreter::BytecodeLabel::bind+35501
11: 00007FF63F1D87F8 v8::internal::interpreter::BytecodeLabel::bind+17768
12: 00007FF63F35152D uv_poll_stop+557
13: 00007FF640101860 v8::internal::compiler::RepresentationChanger::Uint32OverflowOperatorFor+146368
14: 00007FFB97BB7034 BaseThreadInitThunk+20
15: 00007FFB99BA2651 RtlUserThreadStart+33
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! Exit status 134
nuxt.config.ts updated. Restarting nuxt...                                                                                                                                                                          13:59:58
FATAL ERROR: v8::FromJust Maybe value is Nothing.
 1: 00007FF63F30412F napi_wrap+133311
 2: 00007FF63F29DD06 SSL_get_quiet_shutdown+63062
 3: 00007FF63F29EB9D node::OnFatalError+301
 4: 00007FF63FB66BB5 v8::V8::FromJustIsNothing+53
 5: 00007FF63F287823 v8::base::CPU::has_sse+31235
 6: 00007FF63F364E47 uv_timer_stop+1207
 7: 00007FF63F36141B uv_async_send+331
 8: 00007FF63F360BAC uv_loop_init+1292
 9: 00007FF63F360D4A uv_run+202
10: 00007FF63F1DCD3D v8::internal::interpreter::BytecodeLabel::bind+35501
11: 00007FF63F1D87F8 v8::internal::interpreter::BytecodeLabel::bind+17768
12: 00007FF63F35152D uv_poll_stop+557
13: 00007FF640101860 v8::internal::compiler::RepresentationChanger::Uint32OverflowOperatorFor+146368
14: 00007FFB97BB7034 BaseThreadInitThunk+20
15: 00007FFB99BA2651 RtlUserThreadStart+33
npm ERR! code ELIFECYCLE
npm ERR! errno 134

bambo0cha avatar Oct 13 '21 07:10 bambo0cha

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/[email protected]`, `@nuxt/[email protected]`, `@docus/[email protected]`, `@nuxt/[email protected]`, `@nuxtjs/[email protected]`, `@docus/[email protected]`, `@nuxt/[email protected]
------------------------------

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.

Tahul avatar Oct 27 '21 11:10 Tahul

Environment



Logs

FATAL ERROR: v8::FromJust Maybe value is Nothing.
 1: 0x10d83c0e5 node::Abort() [/usr/local/bin/node]
 2: 0x10d83c268 node::OnFatalError(char const*, char const*) [/usr/local/bin/node]
 3: 0x10d9b45a0 v8::V8::FromJustIsNothing() [/usr/local/bin/node]
 4: 0x10d83f614 node::fs::FileHandle::CloseReq::Resolve() [/usr/local/bin/node]
 5: 0x10d8541e8 node::fs::FileHandle::ClosePromise()::$_0::__invoke(uv_fs_s*) [/usr/local/bin/node]
 6: 0x10e1e6828 uv__work_done [/usr/local/bin/node]
 7: 0x10e1eac6b uv__async_io [/usr/local/bin/node]
 8: 0x10e1fe37c uv__io_poll [/usr/local/bin/node]
 9: 0x10e1eb161 uv_run [/usr/local/bin/node]
10: 0x10d777f8f node::SpinEventLoop(node::Environment*) [/usr/local/bin/node]
11: 0x10d8df3ef node::worker::Worker::Run() [/usr/local/bin/node]
12: 0x10d8e2c22 node::worker::Worker::StartThread(v8::FunctionCallbackInfo<v8::Value> const&)::$_3::__invoke(void*) [/usr/local/bin/node]
13: 0x7ff80922f514 _pthread_start [/usr/lib/system/libsystem_pthread.dylib]
14: 0x7ff80922b02f thread_start [/usr/lib/system/libsystem_pthread.dylib]

productdevbook avatar Nov 23 '21 03:11 productdevbook

@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.

Tahul avatar Nov 29 '21 16:11 Tahul

@Tahul I tried to replicate nowadays, but I didn't get this fatal error again. I think this issue may be closed.

nevadavid avatar Dec 12 '21 07:12 nevadavid

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...

qnp avatar Mar 05 '22 20:03 qnp

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.

nrifki avatar Mar 10 '22 12:03 nrifki

@danielroe

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

kevinmarrec avatar Mar 22 '22 17:03 kevinmarrec

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)

pi0 avatar Mar 22 '22 17:03 pi0

@pi0 Yup, but node crashes due to an action performed by the module (it sounds to be related to its storage logic)

EDIT: I'm aware it would be easier to reproduce it without the module, but I couldn't find a proper reproduction without it yet 🥵

kevinmarrec avatar Mar 22 '22 18:03 kevinmarrec

Investigating at this issue, I found it reproductible when saving the plugin and having the http://localhost:3000 running with the WS to vite running.

The error happens right after the full-reload socket sent: Screenshot 2022-03-29 at 18 59 51@2x

This one is actually reloading the page with location.reload():

https://github.com/vitejs/vite/blob/f05a81387b6901622c86c2833f42420b8e18e95e/packages/vite/src/client/client.ts#L119

My current assumption is that the browser reload is hitting too early a worker that is handling a request by Nuxt Content v2 (which is using memory for querying based on unstorage) while this worker is being killed.

Atinux avatar Mar 29 '22 17:03 Atinux

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.

Atinux avatar Mar 29 '22 17:03 Atinux

Let's see once #3956 is merged first 😊

Atinux avatar Mar 30 '22 09:03 Atinux

I investigated again yesterday, and can give few clues I gathered:

It seem to happen after this is called: https://github.com/nuxt/framework/blob/main/packages/nitro/src/server/dev.ts#L48

Here: https://github.com/nuxt/framework/blob/main/packages/nitro/src/server/dev.ts#L70

One other strange thing is it will not happen if you did not opened your browser to access the page.

As seen here:

https://user-images.githubusercontent.com/1385263/160849988-c2b9a134-a3a8-46bf-9bf9-49e3b67e3e87.mp4

I think this might be related to something going on inside the worker while it gets terminated.

Maybe some actions related to filesystem that are either reading/writing while the process gets killed?

That would also (maybe) explain why this is more frequent when using nuxt/content v2.

As things gets parsed on-demand there, this might be related to that.

Of course, these are only theories.

The fact that it only happens after the browser has been opened could also make it related to Vite, or the socket server between client/server.

Tahul avatar Mar 30 '22 14:03 Tahul

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

dsvgl avatar May 10 '22 15:05 dsvgl

@dsvgl same here, downgrading the nuxt dependency to "3.0.0-rc.2" "fixed" the issue for me

michasik avatar May 11 '22 10:05 michasik

I tried downgrading the nuxt package still the same issue Node: 16.13.1

√ Vite server built in 2345ms
FATAL ERROR: v8::FromJust Maybe value is Nothing.
 1: 00007FF6F6D030AF v8::internal::CodeObjectRegistry::~CodeObjectRegistry+112511
 2: 00007FF6F6C92216 DSA_meth_get_flags+65542
 3: 00007FF6F6C930CD node::OnFatalError+301
 4: 00007FF6F75AF4C5 v8::V8::FromJustIsNothing+53
 5: 00007FF6F6C7B203 v8::base::CPU::has_sse+31491
 6: 00007FF6F6D65BF7 uv_timer_stop+1207
 7: 00007FF6F6D621CB uv_async_send+331
 8: 00007FF6F6D6195C uv_loop_init+1292
 9: 00007FF6F6D61AFA uv_run+202
10: 00007FF6F6D30C05 node::SpinEventLoop+309
11: 00007FF6F6BCB4D0 v8::internal::wasm::SignatureMap::Freeze+35776
12: 00007FF6F6BC6B28 v8::internal::wasm::SignatureMap::Freeze+16920
13: 00007FF6F6D522DD uv_poll_stop+557
14: 00007FF6F7B63DF0 v8::internal::compiler::RepresentationChanger::Uint32OverflowOperatorFor+146416
15: 00007FFD4B55244D BaseThreadInitThunk+29
16: 00007FFD4CA8DF88 RtlUserThreadStart+40
error Command failed with exit code 134.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

crstnmac avatar Jun 05 '22 17:06 crstnmac

This seems to happen reliably for Webstorm on save but only sometimes in Visual Studio Code on Windows

qin-guan avatar Jun 06 '22 10:06 qin-guan

Operating System: Windows10 Node Version: v16.13.2 Nuxt Version: 3.0.0-rc.5 Package Manager: Yarn

√ Nitro built in 1312 ms                                                                                                                   
√ Vite server built in 1135ms                                                                                                                 
FATAL ERROR: v8::FromJust Maybe value is Nothing.
 1: 00007FF724A1401F v8::internal::CodeObjectRegistry::~CodeObjectRegistry+112511
 2: 00007FF7249A3146 DSA_meth_get_flags+65542
 3: 00007FF7249A3FFD node::OnFatalError+301
 4: 00007FF7252C0435 v8::V8::FromJustIsNothing+53
 5: 00007FF72498C133 v8::base::CPU::has_sse+31491
 6: 00007FF724A76B67 uv_timer_stop+1207
 7: 00007FF724A7313B uv_async_send+331
 8: 00007FF724A728CC uv_loop_init+1292
 9: 00007FF724A72A6A uv_run+202
10: 00007FF724A41B75 node::SpinEventLoop+309
11: 00007FF7248DC280 v8::internal::wasm::SignatureMap::Freeze+35776
12: 00007FF7248D78D8 v8::internal::wasm::SignatureMap::Freeze+16920
13: 00007FF724A6324D uv_poll_stop+557
14: 00007FF725874D60 v8::internal::compiler::RepresentationChanger::Uint32OverflowOperatorFor+146416
15: 00007FFC12A27034 BaseThreadInitThunk+20
16: 00007FFC139E2651 RtlUserThreadStart+33
error Command failed with exit code 134.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

KujoMiva avatar Jul 18 '22 09:07 KujoMiva

Operating System: Ubuntu 21.04 Node Version: v16.16.0 Nuxt Version: 3.0.0-rc.6 Package Manager: Yarn

FATAL ERROR: v8::FromJust Maybe value is Nothing. 1: 0xb0a860 node::Abort() [/home/developer/.nvm/versions/node/v16.16.0/bin/node] 2: 0xa1c193 node::FatalError(char const*, char const*) [/home/developer/.nvm/versions/node/v16.16.0/bin/node] 3: 0xcf97aa v8::Utils::ReportApiFailure(char const*, char const*) [/home/developer/.nvm/versions/node/v16.16.0/bin/node] 4: 0xb0e6cd node::fs::FileHandle::CloseReq::Resolve() [/home/developer/.nvm/versions/node/v16.16.0/bin/node] 5: 0xb0e829 [/home/developer/.nvm/versions/node/v16.16.0/bin/node] 6: 0x1560e0d [/home/developer/.nvm/versions/node/v16.16.0/bin/node] 7: 0x15655e6 [/home/developer/.nvm/versions/node/v16.16.0/bin/node] 8: 0x1577d14 [/home/developer/.nvm/versions/node/v16.16.0/bin/node] 9: 0x1565f38 uv_run [/home/developer/.nvm/versions/node/v16.16.0/bin/node] 10: 0xa43dd5 node::SpinEventLoop(node::Environment*) [/home/developer/.nvm/versions/node/v16.16.0/bin/node] 11: 0xbd43e2 node::worker::Worker::Run() [/home/developer/.nvm/versions/node/v16.16.0/bin/node] 12: 0xbd4b78 [/home/developer/.nvm/versions/node/v16.16.0/bin/node] 13: 0x7f3074ce1450 [/lib/x86_64-linux-gnu/libpthread.so.0] 14: 0x7f3074c01d53 clone [/lib/x86_64-linux-gnu/libc.so.6] Aborted (core dumped) error Command failed with exit code 134.

Aleksandr-Baranchuk avatar Jul 18 '22 16:07 Aleksandr-Baranchuk

I'm getting this error when I update a pinia store and save the file. HMR crashes. HMR works fine with my pages/components etc. And starting the server fresh after a crash works fine.

My pinia stores are initialized via a plugin so that they can use the application config. I wonder if this error has something to do with reloading a file that relies upon the config?

import createStores from '~/stores/index'

export default defineNuxtPlugin((nuxtApp) => {
  const config = useRuntimeConfig()
  nuxtApp.stores = createStores(config.public)
})

I tried creating a minimal reproduction with the above code. No luck though.

https://github.com/TorchlightSoftware/nuxt-bugs/tree/maybe-nothing

Unfortunately, this bug popped up after a month or so of active development, so it's hard to say exactly what set of preconditions created it.

bitmage avatar Jul 18 '22 22:07 bitmage

OS: Arch Node: 16.15.0 Nuxt: 3.0.0-rc.6 (has happened at least on rc.3 and rc.4 as well) Package manager: Yarn

This also happens to me constantly. The traceback is similar to others' posts:

FATAL ERROR: v8::FromJust Maybe value is Nothing.
 1: 0xb09c10 node::Abort() [/home/atte/.nvm/versions/node/v16.15.0/bin/node]
 2: 0xa1c193 node::FatalError(char const*, char const*) [/home/atte/.nvm/versions/node/v16.15.0/bin/node]
 3: 0xcf8afa v8::Utils::ReportApiFailure(char const*, char const*) [/home/atte/.nvm/versions/node/v16.15.0/bin/node]
 4: 0xb0da7d node::fs::FileHandle::CloseReq::Resolve() [/home/atte/.nvm/versions/node/v16.15.0/bin/node]
 5: 0xb0dbd9  [/home/atte/.nvm/versions/node/v16.15.0/bin/node]
 6: 0x156015d  [/home/atte/.nvm/versions/node/v16.15.0/bin/node]
 7: 0x1564936  [/home/atte/.nvm/versions/node/v16.15.0/bin/node]
 8: 0x1577064  [/home/atte/.nvm/versions/node/v16.15.0/bin/node]
 9: 0x1565288 uv_run [/home/atte/.nvm/versions/node/v16.15.0/bin/node]
10: 0xa43dd5 node::SpinEventLoop(node::Environment*) [/home/atte/.nvm/versions/node/v16.15.0/bin/node]
11: 0xbd3792 node::worker::Worker::Run() [/home/atte/.nvm/versions/node/v16.15.0/bin/node]
12: 0xbd3f28  [/home/atte/.nvm/versions/node/v16.15.0/bin/node]
13: 0x7f4da508c54d  [/usr/lib/libc.so.6]
14: 0x7f4da5111874 clone [/usr/lib/libc.so.6]
error Command failed with signal "SIGABRT".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

This happens almost constantly when doing work inside my composables folder. Modifying stuff inside components doesn't seem to cause this. I have only TS files in composables folder. Some call useRuntimeConfig, some not. Most use useNuxtApp.

attevaltojarvi avatar Jul 21 '22 08:07 attevaltojarvi

OS:windows Node: 16.15.1 Nuxt: 3.0.0-rc.6 Package manager: Yarn

refresh sometimes

FATAL ERROR: v8::FromJust Maybe value is Nothing.
 1: 00007FF607B779CF v8::internal::CodeObjectRegistry::~CodeObjectRegistry+114207
 2: 00007FF607B06096 DSA_meth_get_flags+65542
 3: 00007FF607B06F4D node::OnFatalError+301
 4: 00007FF608425BF5 v8::V8::FromJustIsNothing+53
 5: 00007FF607AEF083 v8::base::CPU::has_sse+31507
 6: 00007FF607BDA947 uv_timer_stop+1207
 7: 00007FF607BD6EDB uv_async_send+331
 8: 00007FF607BD666C uv_loop_init+1292
 9: 00007FF607BD680A uv_run+202
10: 00007FF607BA5675 node::SpinEventLoop+309
11: 00007FF607A3E6F0 v8::internal::interpreter::BytecodeLabel::bind+35712
12: 00007FF607A39D48 v8::internal::interpreter::BytecodeLabel::bind+16856
13: 00007FF607BC6EDD uv_poll_stop+557
14: 00007FF6089E0120 v8::internal::compiler::RepresentationChanger::Uint32OverflowOperatorFor+146416
15: 00007FF8AF727034 BaseThreadInitThunk+20
16: 00007FF8B1702651 RtlUserThreadStart+33
error Command failed with exit code 134.

codeinfo avatar Jul 29 '22 08:07 codeinfo

Getting this Node ESM cache error very frequently. Very painful... Any workaround?

raphmarot avatar Aug 03 '22 10:08 raphmarot

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

experimental: {
  viteNode: true
}

Atinux avatar Aug 03 '22 10:08 Atinux

I get h3 errors related to content v2 after enabling vite-node. Probably (unrelated) errors in my code.

raphmarot avatar Aug 03 '22 12:08 raphmarot

Tracking this in https://github.com/nodejs/node/issues/6899

The following might help some of you using vite https://github.com/nodejs/node/issues/6899#issuecomment-1210954352

OmgImAlexis avatar Aug 13 '22 11:08 OmgImAlexis

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.

danielroe avatar Aug 13 '22 11:08 danielroe