question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`[vite] Error when evaluating SSR module`, `SyntaxError: Unexpected token '.'`

See original GitHub issue

Follow up of https://github.com/brillout/vite-plugin-ssr/issues/93#issuecomment-860040841.

@Dema

Does rm -r ./node_modules/.vite/ get rid of the error?

I couldn’t reproduce with following steps.

1. Run  `yarn create vite-plugin-ssr`
2. Select `react-ts`
3. `cd vite-project`
4. Move pages to ./src/pages
5. `yarn install`
6. Run `yarn dev`
7. Open http://localhost:3000/

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
brilloutcommented, Jun 12, 2021

At least we are making some slight progress in elucidating this 😅

0reactions
brilloutcommented, Sep 25, 2021

Seems like a bug on Vite’s or Node.js’s side. Anyways good to know; thanks for reporting back.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"[vite] Error when evaluating SSR module" when using ssh2 ...
I am trying to build a server management GUI with SvelteKit using SSH via ssh2-promise . The strange thing is: the file /Users/user/evaluating- ......
Read more >
Shopify Hydrogen Demo Site Error - SyntaxError: Unexpected ...
I set me up a new site using the demo site for shopify hydrogen as a template, when i try and run it...
Read more >
How to Fix „Uncaught SyntaxError: Unexpected token 'export
Using type="module" on the <script> tag solved the „Unexpected token export ” error. The browser runs the imported JavaScript without issues.
Read more >
Configuring Vite
When running vite from the command line, Vite will automatically try to resolve a config file named vite.config.js inside project root. ... Note...
Read more >
How To Fix Unexpected token u in JSON at position 0 - Isotropic
This error is caused when you are attempting to parse a non-existent property. Typically, this is due to a misspelling, or simply referencing ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found