Skip to content

Can't import npm package using es6 module #233

@hakunin

Description

@hakunin

Hi,
sorry for a stupid question, but I just can't seem to import the Cookies object in my project no matter what I try.

Here is what I tried:

import 'js-cookie'

and

import Cookie from 'js-cookie'
window.Cookie = Cookie

None produce any Cookie names object in the window, or local context.
I can import any other packages just fine, but somehow not this one.

Any ideas why that might be?

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