SvelteKit dev server doesn't start

[SOLVED]

I want to try out the new SvelteKit replacement for Sapper, but I’m not able to start a dev server.

Commands I ran

npm init svelte@next
npm install
npm run dev -- --open

The Error

(node:16570) UnhandledPromiseRejectionWarning: .../Desktop/Programming/Web Development/Svelte/Demo-app/node_modules/@sveltejs/kit/dist/index4.js:262
        #map;
        ^

SyntaxError: Invalid or unexpected token
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (../Desktop/Programming/Web Development/Svelte/Demo-app/node_modules/@sveltejs/kit/dist/index.js:13:13)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
(node:16570) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:16570) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I haven’t touched the generated code.

I know these kinds of errors pop when it’s unable to open a new browser tab with the server started, but I have no idea how to fix it here.

Node Version

v10.19.0

OS

Ubuntu 20.04.1 LTS, 64-bit

Browser

Firefox 83.0 (64-bit)

Proxy

Burp Suite

Solution

Updating node to version 12+ removed the error and enabled starting the dev server.

175 thoughts on “SvelteKit dev server doesn't start”

  1. I know this if off topic but I’m looking into starting my own weblog and was wondering what all is needed to get set up?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very internet savvy so I’m not 100%
    sure. Any suggestions or advice would be greatly appreciated.

    Cheers

    Reply
  2. Howdy, i read your blog from time to time and i own a similar one and i was just wondering if you
    get a lot of spam feedback? If so how do you protect against it,
    any plugin or anything you can advise? I get so much lately
    it’s driving me crazy so any assistance is very much appreciated.

    Reply
  3. You are so cool! I do not suppose I have read through something like
    this before. So good to discover somebody with original thoughts on this subject
    matter. Seriously.. thank you for starting this up.

    This website is one thing that is needed on the web,
    someone with a little originality!

    Reply
  4. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make
    your point. You clearly know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be
    giving us something enlightening to read? quest bars http://bit.ly/3jZgEA2 quest bars

    Reply
  5. Woah! I’m really enjoying the template/theme of this website.
    It’s simple, yet effective. A lot of times it’s challenging to get that “perfect balance” between user friendliness
    and visual appearance. I must say you’ve done
    a fantastic job with this. Also, the blog loads very quick for me on Chrome.
    Outstanding Blog! scoliosis surgery https://0401mm.tumblr.com/ scoliosis surgery

    Reply
  6. Hey there! I know this is kinda off topic nevertheless I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest writing a blog post or vice-versa?
    My site covers a lot of the same subjects as yours and I think we could greatly benefit from each other.
    If you’re interested feel free to send me an e-mail.

    I look forward to hearing from you! Excellent blog by the way!

    Reply
  7. It’s a shame you don’t have a donate button! I’d
    without a doubt donate to this outstanding blog!
    I suppose for now i’ll settle for book-marking and adding
    your RSS feed to my Google account. I look forward to brand new updates and will talk about this website with my Facebook
    group. Talk soon!

    Reply
  8. Hi my family member! I want to say that this article is amazing, great written and come with almost all important infos.
    I would like to look extra posts like this .

    Reply
  9. I just could not go away your site prior to suggesting that I extremely loved the standard info a person supply to your visitors?
    Is going to be back incessantly in order to inspect new posts

    Reply
  10. Pingback: 24 mg zanaflex
  11. Pingback: aralen 200