Skip to content

SyntaxError: Unexpected token 'export' when starting production build of Node+Express+Socket app with TURBOREPO (monorepo) #9055

Closed Answered by anthonyshew
HenriqueRamos13 asked this question in Help
Discussion options

You must be logged in to vote

Express.js isn't able to consume TypeScript directly, which is a limitation of Just-In-Time packages. The Next.js application can handle it since it's using webpack or Turbopack for bundling, but Express.js doesn't have a bundler. You may want to switch to a Compiled Package.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by anthonyshew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants