Skip to content

Can't import l10n files #55

Closed
Closed
@janein

Description

@janein

Hi,

thanks for this awesome, accessible lightbox! :)

I ran into an issue importing the l10n files.
When I try to import them like this:

import de from 'parvus/src/l10n/de';

I get an error in my bundler (= vite):

Missing "./src/l10n/de" specifier in "parvus" package

Looks like there is an error in the package configuration.
I had the same issue with the styles, but I got it working once i moved the import into my scss-files and used an absolute path.

// won't work
@import 'parvus/src/scss/parvus';
// works
@import '/node_modules/parvus/src/scss/parvus';

Would be nice if you could manage to fix this.

Thanks! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions