Skip to content

[Question] Using the beforeMount in js instead of ts #18812

@oliver-freudrich-packwise

Description

Hey there, I've tried to use your beforeMount function as mentioned in this ticket to register global plugins for vue 2, but I am trying to use it an js instead of ts.

index.js

import { beforeMount } from '@playwright/experimental-ct-vue2/hooks'; // <= "Resolve error: Cannot find module './node_modules/@playwright/experimental-ct-vue2/hooks.mjs'"
import { registerPlugins } from '@/register';

beforeMount(({ app }) => {
  registerPlugins(app);
});

Is that not possible yet or do I have to use it in another way?

Metadata

Metadata

Assignees

No one assigned

    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