wallabyjs / quokka

Repository for Quokka.js questions and issues
https://quokkajs.com
1.18k stars 31 forks source link

Quokka not working #860

Closed stvrdeol closed 1 year ago

stvrdeol commented 1 year ago

Quokka.js Console Output

Unexpected token '?' 
  ​​​​​at ​​​​​​​​Object.compileFunction​​​ ​vm.js:344​

Code editor version

Visual Studio Code v1.70.3

OS name and version

Windows 7

smcenlly commented 1 year ago

Can you please provide the complete code that you are trying to run, as well as the full Quokka Output window content? For example, see our screenshot below that shows both the code and the output window:

image
stvrdeol commented 1 year ago

it does not work with any code Capture

smcenlly commented 1 year ago

From your output, I can see that you are using node@13.14.0 which was released 3 years ago with end of life on 1 Jun 2020.

The reason it's not working for you is that you are using jsdom and the latest versions of jsdom require Node.js v14 or newer. (Versions of jsdom below v20 still work with previous Node.js versions, but are unsupported.); this is mentioned in their docs.

Internally, jsdom is using the optional chaining operator, which requires node v14+.


Please update to a newer version of node and it will work for you. You can see current version support here.