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)
2 months 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)
2 months 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]
2 months 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)
New Reply
This reply is
Your name (optional):