Closed
Description
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)
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 commentedon Apr 10, 2024
Hi, thanks for opening the issue. It looks like this export is really missing. Could you explain why you closed the issue?
addielmoldes commentedon Apr 10, 2024
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 commentedon Apr 10, 2024
Thanks for the explanation. I will re-open this issue for tracking the problem with the injection token.
json-derulo commentedon Apr 10, 2024
Fixed with v3.0.1