`FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.` on node 8
See original GitHub issueI started getting this error when updating from node 6 to node 8. I can reproduce running this code on my large repository but I haven’t yet tracked it down to which files are exactly causing it:
const glob = require('fast-glob');
const files = glob.sync('**/*.js', {
bashNative: [],
onlyFiles: true,
cwd: process.cwd(),
ignore: ['node_modules/**'],
});
console.log(files);
FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.
1: node::Abort() [/usr/local/bin/node]
2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/usr/local/bin/node]
3: v8::V8::ToLocalEmpty() [/usr/local/bin/node]
4: node::ReadDir(v8::FunctionCallbackInfo<v8::Value> const&) [/usr/local/bin/node]
5: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) [/usr/local/bin/node]
6: v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) [/usr/local/bin/node]
7: v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) [/usr/local/bin/node]
8: 0x2b0d0ee0463d
9: 0x2b0d0eef474a
node v8.9.3, macOS 10.13.2
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:8 (6 by maintainers)
Top Results From Across the Web
FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal ...
How often does it reproduce? Is there a required condition? always. What is the expected behavior? One of two possibilities: A) early error...
Read more >node js ToLocalChecked Empty MaybeLocal error
node js crashed with this error i want execute sql query. FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal. ... edited Mar 29 at 8:01.
Read more >FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal. PLS ...
FATAL ERROR : v8::ToLocalChecked Empty MaybeLocal. 1: node::Abort() [node] 2: 0x8ccf9c [node] 3: v8::Utils::ReportApiFailure(char const*, ...
Read more >v8: MaybeLocal< T > Class Template Reference - v8docs
A MaybeLocal<> is a wrapper around Local<> that enforces a check whether the Local<> is empty before it ... In that case, an...
Read more >FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.
FATAL ERROR : v8::ToLocalChecked Empty MaybeLocal.. ezezvacss. - Reported Jun 05, 2019. Hello there, when i write code work all perfect.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for clarifying the problem! So, we well work on the solution here:
Also you can follow to #42.
@jrylan, @robrichard,
Please, try to use
npm i fast-glob@next --force
for your broken cases. I tried to fix the problem with large directories, temporarily switching to thereaddir-enhanced
fork.