Skip to content

cozy-flags: import syntax seems to have changed #1330

Open
@acezard

Description

@acezard

PR for reference: cozy/cozy-notes#201

Before:

import { useFlag } from 'cozy-flags'
import flag, { FlagSwitcher } from 'cozy-flags'

After updating cozy-flags: useFlag and FlagSwitcher are undefined.

Temporary fix:

import useFlag from 'cozy-flags/dist/useFlag'
import FlagSwitcher from 'cozy-flags/dist/FlagSwitcher'
import flag from 'cozy-flags'

Here everything is defined, but the import paths are non-idiomatic.

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