title: What does this vite error mean? SyntaxError: Unexpected token (6:180) at Object.pp$4.raise
body: <p>I am upgrading my Sapper application to SvelteKit. I can run npm run dev fine and it starts my application on localhost:3000. When I browse to that URL, I get the following error:</p>
  <pre><code>SyntaxError: Unexpected token (6:180)
  at Object.pp$4.raise (../node_modules/vite/dist/node/chunks/dep-66eb515d.js:35308:13)
  at Object.pp.unexpected (../node_modules/vite/dist/node/chunks/dep-66eb515d.js:32999:8)
  at Object.pp.expect (../node_modules/vite/dist/node/chunks/dep-66eb515d.js:32993:26)
  at Object.pp$3.parseObj (../node_modules/vite/dist/node/chunks/dep-66eb515d.js:34944:12)
  at Object.pp$3.parseExprAtom (../node_modules/vite/dist/node/chunks/dep-66eb515d.js:34683:17)
  at Object.pp$3.parseExprSubscripts (../node_modules/vite/dist/node/chunks/dep-66eb515d.js:34509:19)
  at Object.pp$3.parseMaybeUnary (../node_modules/vite/dist/node/chunks/dep-66eb515d.js:34486:17)
  at Object.parseMaybeUnary (../node_modules/vite/dist/node/chunks/dep-66eb515d.js:43031:29)
  at Object.pp$3.parseExprOps (../node_modules/vite/dist/node/chunks/dep-66eb515d.js:34421:19)
  at Object.pp$3.parseMaybeConditional (../node_modules/vite/dist/node/chunks/dep-66eb515d.js:34404:19)
  </code></pre>
  <p>I can't figure out the point this error is being raised. Can anyone suggest a place to look?</p>
  <p>My svelte.config.cjs is</p>
  <pre><code>const node = require('@sveltejs/adapter-node');
  
  module.exports = {
      kit: {
          // By default, `npm run build` will create a standard Node app.
          // You can create optimized builds for different platforms by
          // specifying a different adapter
          adapter: node(),
  
      // hydrate the &lt;div id=&quot;svelte&quot;&gt; element in src/app.html
      target: '#svelte',
  
      vite: {
          ssr: {
              noExternal: ['node-fetch']
          }
      }
  }
  };
  </code></pre>
  <p>My package.json includes the follows</p>
  <pre><code>  &quot;dependencies&quot;: {
      &quot;typescript&quot;: &quot;^4.2.4&quot;,
      &quot;node-fetch&quot;: &quot;^2.6.1&quot;,
      &quot;@sveltejs/vite-plugin-svelte&quot;: &quot;^1.0.0-next.5&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@sveltejs/kit&quot;: &quot;next&quot;,
      &quot;vite&quot;: &quot;^2.1.5&quot;,
      &quot;@sveltejs/adapter-node&quot;: &quot;next&quot;,
      &quot;svelte&quot;: &quot;^3.35.0&quot;,
      &quot;svelte-flex&quot;: &quot;^1.2.2&quot;,
      &quot;svelte-simple-modal&quot;: &quot;^0.9.0&quot;
    }
  </code></pre>