Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
addielmoldes opened this issue Apr 9, 2024 · 4 comments · Fixed by #308
Closed
Assignees
Labels
bug Something isn't working

Comments

@addielmoldes
Copy link

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

@addielmoldes addielmoldes added the bug Something isn't working label Apr 9, 2024
@json-derulo
Copy link
Owner

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

@addielmoldes
Copy link
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
Copy link
Owner

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

@json-derulo
Copy link
Owner

Fixed with v3.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants