search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Critical error, unable to build code on production environment

Asked by Hoang Xuan Nguyen (nguyen.hoang)
5 years ago.

I am using DayPilot Pro For Angular. When executing the build source code on the production environment, an error cannot be built as shown below. I have investigated but there is no way to fix it. I look forward to the support from DayPilot Support.

Comment posted by Hoang Xuan Nguyen (nguyen.hoang)
5 years ago.

This is the .module.ts file of the function that is using DayPilot. I completely build successfully when using on dev environment.
http://prntscr.com/m49ns8

Answer posted by Dan Letecky [DayPilot]
5 years ago.

For the record:

1. Problem:

Compilation error message: "Unexpected value 'DayPilotModule in ... node_modules/daypilot-pro-angular/daypilot-angular.min.d.ts' imported by the module '...'. Please add @NgModule annotation."

2. Solution:

  • Delete the node_modules folder.
  • Run npm install command (instead of yarn install).
  • Build code by using webpack yarn:prod command (or ng build --prod)
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.