-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError: Unexpected token 'export' #238
Comments
Hi @krishnaTORQUE! This might be related to #237. Could you possibly try the potential solution outlined in that issue and name the entry file to |
@EmilTholin |
@krishnaTORQUE did you ever find a solution? I need SSR for SEO support and since this doesn't look like it's going to get fixed, I've started looking for alternatives to this library. |
Hi @atsepkov The solution which I have implemented is quite hard & only works on linux.
If you are using vite then the solution will be slightly different. Vite has some cool features for SSR & Typescript. |
export { default as Router } from "./Router.svelte";
^^^^^^
SyntaxError: Unexpected token 'export'
at Object.compileFunction (node:vm:360:18)
at wrapSafe (node:internal/modules/cjs/loader:1088:15)
at Module._compile (node:internal/modules/cjs/loader:1123:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Module.require (node:internal/modules/cjs/loader:1061:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (/home/krishna/Project/svelte_test/src/App.svelte:5:33)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
Node.js v18.12.1
The text was updated successfully, but these errors were encountered: