Closed Green-Cat closed 3 years ago
To load Marko on the server side it needs to be transpiled. You need to either use a bundler for the server, like In our webpack-fastify
example, or use the marko/node-require
hook, as mentioned in the express guide.
Version: 1.0.2
Details
I am unable to render templates with this library and fastify.
Expected Behavior
No error, template rendered.
Actual Behavior
The following error occurs:
SyntaxError: Unexpected token '<'
Your Environment
Steps to Reproduce
Simply following the example from the readme. Created a typescript project with fastify, marko v5 and this library. package.json:
index.ts:
hello.marko:
Stack Trace