question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Production build throwing error after migratin UI to NG-ZORRO-ANTD

See original GitHub issue

Production build is succesfull but the application just does not work.

RROR NullInjectorError: StaticInjectorError(c)[$ -> V]: StaticInjectorError(Platform: core)[$ -> V]: NullInjectorError: No provider for V! at j.get (http://localhost:4200/main.205a39b164af2df4f46e.js:1:257106) at http://localhost:4200/main.205a39b164af2df4f46e.js:1:259276 at t (http://localhost:4200/main.205a39b164af2df4f46e.js:1:259646) at W.get (http://localhost:4200/main.205a39b164af2df4f46e.js:1:259769) at http://localhost:4200/main.205a39b164af2df4f46e.js:1:259276 at t (http://localhost:4200/main.205a39b164af2df4f46e.js:1:259646) at W.get (http://localhost:4200/main.205a39b164af2df4f46e.js:1:259769) at ar (http://localhost:4200/main.205a39b164af2df4f46e.js:1:306022) at zr.get (http://localhost:4200/main.205a39b164af2df4f46e.js:1:314741) at ar (http://localhost:4200/main.205a39b164af2df4f46e.js:1:306022)

The same error is thrown when running locally ng serve–prod or when we build the application ng serve --prod and then run it on a server. Running in development mode, everything is great and work fine.

Error is thrown inside core.js.pre-build-optimizer.js:7187 file.

DEPENDENCIES “dependencies”: { “@angular/animations”: “^8.0.0”, “@angular/cdk”: “^7.3.1”, “@angular/common”: “~8.0.0”, “@angular/compiler”: “~8.0.0”, “@angular/core”: “~8.0.0”, “@angular/forms”: “~8.0.0”, “@angular/material”: “^7.3.1”, “@angular/material-moment-adapter”: “^7.3.1”, “@angular/platform-browser”: “~8.0.0”, “@angular/platform-browser-dynamic”: “~8.0.0”, “@angular/router”: “~8.0.0”, “@netbasal/ngx-content-loader”: “^2.1.0”, “@ngrx/store”: “^7.4.0”, “@types/file-saver”: “^2.0.1”, “@types/googlemaps”: “^3.30.16”, “acorn”: “^6.1.1”, “core-js”: “^2.5.4”, “dayjs”: “^1.8.15”, “file-saver”: “^2.0.2”, “hammerjs”: “^2.0.8”, “luxon”: “^1.12.0”, “moment”: “^2.24.0”, “ng-zorro-antd”: “^8.2.1”, “ngx-cookie-service”: “^2.1.0”, “ngx-material-timepicker”: “^3.0.2”, “ramda”: “^0.26.1”, “rxjs”: “~6.5.2”, “tslib”: “^1.9.0”, “zone.js”: “~0.9.1” }, “devDependencies”: { “@angular-devkit/build-angular”: “~0.800.0”, “@angular/cli”: “~8.0.0”, “@angular/compiler-cli”: “~8.0.0”, “@angular/language-service”: “~8.0.0”, “@babel/core”: “^7.4.5”, “@compodoc/compodoc”: “^1.1.9”, “@storybook/addon-actions”: “^5.0.11”, “@storybook/addon-links”: “^5.0.11”, “@storybook/addon-notes”: “^5.0.11”, “@storybook/addons”: “^5.0.11”, “@storybook/angular”: “^5.0.11”, “@types/jasmine”: “~2.8.8”, “@types/jasminewd2”: “~2.0.3”, “@types/node”: “~8.9.4”, “babel-loader”: “^8.0.6”, “browser-sync”: “^2.26.5”, “codelyzer”: “^5.0.1”, “husky”: “^3.0.5”, “jasmine-core”: “~2.99.1”, “jasmine-spec-reporter”: “~4.2.1”, “karma”: “~3.1.1”, “karma-chrome-launcher”: “~2.2.0”, “karma-coverage-istanbul-reporter”: “~2.0.1”, “karma-jasmine”: “~1.1.2”, “karma-jasmine-html-reporter”: “^0.2.2”, “prettier”: “1.18.2”, “pretty-quick”: “^1.11.1”, “protractor”: “~5.4.0”, “ts-node”: “~7.0.0”, “tslint”: “~5.11.0”, “typescript”: “~3.4.5” }

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
sharathsrinivascommented, Apr 15, 2020

Hi @BrsJsk , You were able to have storybook as part of Ng zorro. That’s actually great. Can you help me with how you did that?

Did you succeed?

0reactions
juritocommented, Apr 30, 2020

Did anyone able to add storybook to NG-ZORRO? If please help me. The storybook won’t load the and style.

+1, Same here 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Production build throwing error after migratin UI to NG-ZORRO ...
Production build is succesfull but the application just does not work. ... The same error is thrown when running locally ng serve--prod or...
Read more >
Production build throwing error after migratin UI to NG-ZORRO ...
The same error is thrown when running locally ng serve--prod or when we build the application ng serve --prod and then run it...
Read more >
Speeding up the development serve after upgrading to ...
There is a migration to add a "development" build configuration. To run this migration, run: ng update @angular/cli --migrate-only update- ...
Read more >
Angular Update Guide
Warning: Be sure to follow the guide below to migrate your application to the new version. You can't run ng update to update...
Read more >
ng-zorro-antd | Yarn - Package Manager
An enterprise-class UI components based on Ant Design and Angular ... Bug Fixes. drawer: fix nzContentParams definition error (#7668 (0074013), closes #7620 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found