jvandemo / jvandemo/generator-angular2-library

Problem with the compilation AOT

Open
#183 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
740
Forks
116
PR merge metrics
No merged PRs in 30d

Description

Hi,

I try to use the basic library installation with the Sample Component in a basic application Angular CLI.
ng serve work fine but when you try ng build --prod and try to see in dist folder in web, I have an error r is not a constructor.
I know there is already an issue about it #127 with an answer from @sebastianteres but I don't really understand what to do.
Maybe @sebastianteres you can help too ?

Thank you very much !

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the behavior described for the Sample Component in an Angular CLI application and reproduce it with ng serve, then ng build --prod. Read the guidance in issue #127 and inspect the generated dist output. Done means the production build runs in the browser without the “r is not a constructor” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, javascript
Domain
build-system, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.