You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: