Vue Cli Serve fatal JavaScript invalid size error: node_api_throw_syntax_error
P粉875565683
P粉875565683 2023-08-29 14:29:34
0
1
475

My problem is that I can't serve or build my vue application. When doing this, I receive the following error:

INFO Starting development server... [70%] sealing (finish module graph ESLintWebpackPlugin_1) # # Fatal error in , line 0 # Fatal JavaScript invalid size error 169220804 # # # #FailureMessage Object: 00000075C11FC8E0 1: 00007FF78CD49E7F node_api_throw_syntax_error 175967 2: 00007FF78CC6036F v8::CTypeInfoBuilder::Build 11999 3: 00007FF78DACD182 V8_Fatal 162 4: 00007FF78D60A265 v8::internal::FactoryBase::NewFixedArray 101 5: 00007FF78D48F8E3 v8::internal::FeedbackNexus::ic_state 65795 6: 00007FF78D4AE460 v8::Context::GetIsolate 15600 7: 00007FF78D2FAA40 v8::internal::CompilationCache::IsEnabledScriptAndEval 25952 8: 00007FF78D8078B1 v8::internal::SetupIsolateDelegate::SetupHeap 558193 9: 00007FF70EB45D8E

I found this threat, which references the same issue, but in a single code file: Fatal javascript invalid size error 188720663

Is there any way to identify such loops in my *.vue files or identify the last file processed?

I've had this error before, but after changing anything it went away (maybe a lucky hit). Using an old commit (when it was valid) also doesn't fix this error. I also tried cloning the repository and installing again.

P粉875565683
P粉875565683

reply all (1)
P粉834840856

I found the solution!

The problem is that in .prettierrc, the attribute "endOfLine" is set to "auto".

This results in \r\n instead of \r at the end of each line, which itself can cause a memory leak within the vue compiler.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!