Skip to content

$style is undefined when using CSS modules #179

Closed
@frandiox

Description

@frandiox

Using CSS modules leads to Property "$style" was accessed during render but is not defined on instance..

I guess this should work out of the box with CSS modules or at least document how to use it. A simple workaround to make it pass is:

import { config } from '@vue/test-utils'

config.global.mocks = config.global.mocks || {}
config.global.mocks.$style = {}

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