search

Home  >  Q&A  >  body text

Vue Cli Serve fatal JavaScript invalid size error: node_api_throw_syntax_error

<p>My problem is that I can't serve or build my vue application. When doing this, I receive the following error: </p> <pre class="brush:php;toolbar:false;">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<void>::Build 11999 3: 00007FF78DACD182 V8_Fatal 162 4: 00007FF78D60A265 v8::internal::FactoryBase<v8::internal::Factory>::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</pre> <p>I found this threat, which references the same issue, but in a single code file: Fatal javascript invalid size error 188720663</p> <p>Is there any way to identify such loops in my *.vue files or identify the last file processed? </p> <p>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>
P粉875565683P粉875565683461 days ago557

reply all(1)I'll reply

  • P粉834840856

    P粉8348408562023-08-30 10:04:36

    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.

    reply
    0
  • Cancelreply