BioPhoton / BioPhoton/angular-formatter-parser

Angular 5

Open
#8 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
50
Forks
6
PR merge metrics
No merged PRs in 30d

Description

I have followed your instruction and I am trying to implement on Angular 5.
But there is a strange thing that when using ng server everything works fine, but when I am building for production I am getting

main.d32a5818ac6f3d928ac5.bundle.js:1 ERROR Error: Formatter or Parser with name currencyFormat
is not provided as a function via FormatterParser
service or FORMATTER_PARSER InjectionToken.
Did you forgot to provide them?
at n.getFormatParseFunction (main.d32a5818ac6f3d928ac5.bundle.js:1)

Has anyone else found a similar problem with angular 5?

Contributor guide

Open the contributing guide

Research direction

Reproduce the difference between `ng server` and the Angular 5 production build, then inspect the production bundle around the FormatterParser error. Trace why `currencyFormat` is not provided as a function or injection token and confirm the fix by rebuilding for production without the error.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.