Skip to content

renderAMP returns empty object #4

@Cool-Programmer

Description

@Cool-Programmer

This is the init
..
const app = express();
const expressAMP = require('express-amp');
app.use(expressAMP({
override: false,
staticsPath: ${process.cwd()}/public/
}));
..

response.renderAMP("front/amp/posts/single_post", {
category: category,
category_posts: category_posts,
post: post
})

Whatever i do, the renderAMP will print only {}, e.g. an empty JSON object. May be you know how can i debug this?

-- update
I also tried with the example that you provided, still got the same issue with empty {}.
Switching to version 1.0.5 fixed the problem for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions