Skip to content

Missing export of INTL_RELATIVE_TIME_PIPE_DEFAULT_OPTIONS in "angular-ecmascript-intl" #307

Closed
@addielmoldes

Description

@addielmoldes

When trying to inject INTL_RELATIVE_TIME_PIPE_DEFAULT_OPTIONS token in App Module providers.

Output:
Error: Module not found: Error: Package path ./lib/relative-time/relative-time-pipe-default-options is not exported from package /home/addiel/Documents/Proyectos/plaza_frontend/node_modules/angular-ecmascript-intl (see exports field in /home/addiel/Documents/Proyectos/plaza_frontend/node_modules/angular-ecmascript-intl/package.json)

Screenshot from 2024-04-09 15-15-14

export should be below export * from './lib/relative-time/relative-time.pipe';

My Angular's version is 17.3.3 and Angular Intl latest 3.0.0

Activity

json-derulo

json-derulo commented on Apr 10, 2024

@json-derulo
Owner

Hi, thanks for opening the issue. It looks like this export is really missing. Could you explain why you closed the issue?

addielmoldes

addielmoldes commented on Apr 10, 2024

@addielmoldes
Author

I thought the pipe wasn't working because the relative time in component's template was always 0, but then I realized it was my mistake because I had set the date in the mock up object I use to test to always new Date().

It actually was a confusion to close the issue because I thought it was my mistake, but the export of the relative time options token is really missing, so it crashes when you try to provide it.

json-derulo

json-derulo commented on Apr 10, 2024

@json-derulo
Owner

Thanks for the explanation. I will re-open this issue for tracking the problem with the injection token.

json-derulo

json-derulo commented on Apr 10, 2024

@json-derulo
Owner

Fixed with v3.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @json-derulo@addielmoldes

    Issue actions

      Missing export of INTL_RELATIVE_TIME_PIPE_DEFAULT_OPTIONS in "angular-ecmascript-intl" · Issue #307 · json-derulo/angular-ecmascript-intl