Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

litFixtureSync want getScopedElementsTemplate but fixtureSync call it without this argument #2749

Open
RoXuS opened this issue Nov 10, 2023 · 1 comment

Comments

@RoXuS
Copy link

RoXuS commented Nov 10, 2023

Expected behavior

Use fixtureSync (with options.scopedElements).

Actual Behavior

TypeError: getScopedElementsTemplate is not a function

Additional context

fixtureSync call litFixtureSync without getScopedElementsTemplate, it produce an error because this argument is mandatory in case of option.scopedElements.

See above:

image
image

@RoXuS
Copy link
Author

RoXuS commented Nov 10, 2023

You should:

  • import getScopedElementsTemplate instead of use as an argument and it should be ok.
  • or add it to an argument of fixtureSync function but you have to expose getScopedElementsTemplate (currently is not exposed so we can use it outside the package).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant