Skip to content
This repository was archived by the owner on Dec 8, 2024. It is now read-only.
This repository was archived by the owner on Dec 8, 2024. It is now read-only.

Latest version breaks template-compiler usage in the browser #350

Description

@boris-petrov

Using version 4.4.1 leads to the following when running ember test:

tests/helpers/templates.ts: hbs should be invoked with at least a single argument: the template string
  16 |     return {
  17 |       value: template,
> 18 |       precompiled: JSON.parse(precompileTemplate(template)),
     |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  19 |     };
  20 |   }
  21 | }

With the import:

import { compileTemplate, precompileTemplate } from '@ember/template-compilation';

4.2.1 works fine.

Using Ember.HTMLBars.compile and Ember.HTMLBars.precompile instead also works.

Related Discord discussion.

cc @rwjblue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions