Skip to content

How to use handlebars in es4x? #596

@guydeschepper

Description

@guydeschepper

I'm trying to use handlebars in es4x, but it's throwing the following error:

Failed in deploying verticle caused by TypeError: Access to host class io.vertx.ext.web.handler.APIKeyHandler is not allowed or does not exist.

This can be reproduced with the following code:

/// <reference types="@vertx/core" />
// @ts-check
import { Router, TemplateHandler } from '@vertx/web';
import * as hb from '@vertx/web-templ-handlebars';

const engine = hb.HandlebarsTemplateEngine.create(vertx);
console.log('started');

The same code (equivalent) works fine in Vert.x java

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions