Angular 5

Open
#8 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

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?

Dominant language
TypeScript
Stars
50
Forks
6
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BioPhoton/angular-formatter-parser

All issues in BioPhoton/angular-formatter-parser

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.