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

I'm facing issue while updating my daypilot version 2018 to 2021.

Asked by Akhtar Raza
22 days ago.

ERROR in ./node_modules/daypilot-pro-angular/daypilot-angular.min.js
Module build failed: Error: ENOENT: no such file or directory, open 'D:\Teamium\Frontend-ERP\node_modules\daypilot-pro-angular\daypilot-angular.min.js'
at Object.openSync (fs.js:498:3)
at Object.readFileSync (fs.js:394:35)
at Storage.provideSync (D:\Teamium\Frontend-ERP\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:98:13)
at CachedInputFileSystem.readFileSync (D:\Teamium\Frontend-ERP\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:259:32)
at Observable._subscribe (D:\Teamium\Frontend-ERP\node_modules\@ngtools\webpack\src\webpack-input-host.js:35:51)
at Observable._trySubscribe (D:\Teamium\Frontend-ERP\node_modules\@ngtools\webpack\node_modules\rxjs\internal\Observable.js:44:25)
at Observable.subscribe (D:\Teamium\Frontend-ERP\node_modules\@ngtools\webpack\node_modules\rxjs\internal\Observable.js:30:22)
at SyncDelegateHost._doSyncCall (D:\Teamium\Frontend-ERP\node_modules\@ngtools\webpack\node_modules\@angular-devkit\core\src\virtual-fs\host\sync.js:22:20)
at SyncDelegateHost.read (D:\Teamium\Frontend-ERP\node_modules\@ngtools\webpack\node_modules\@angular-devkit\core\src\virtual-fs\host\sync.js:49:21)
at WebpackCompilerHost.readFileBuffer (D:\Teamium\Frontend-ERP\node_modules\@ngtools\webpack\src\compiler_host.js:125:44)
at VirtualFileSystemDecorator.readFile (D:\Teamium\Frontend-ERP\node_modules\@ngtools\webpack\src\virtual_file_system_decorator.js:39:54)
at processResource (D:\Teamium\Frontend-ERP\node_modules\loader-runner\lib\LoaderRunner.js:202:11)
at iteratePitchingLoaders (D:\Teamium\Frontend-ERP\node_modules\loader-runner\lib\LoaderRunner.js:158:10)
at runLoaders (D:\Teamium\Frontend-ERP\node_modules\loader-runner\lib\LoaderRunner.js:365:2)
at NormalModule.doBuild (D:\Teamium\Frontend-ERP\node_modules\webpack\lib\NormalModule.js:280:3)
at NormalModule.build (D:\Teamium\Frontend-ERP\node_modules\webpack\lib\NormalModule.js:427:15)
at Compilation.buildModule (D:\Teamium\Frontend-ERP\node_modules\webpack\lib\Compilation.js:633:10)
at D:\Teamium\Frontend-ERP\node_modules\webpack\lib\Compilation.js:882:14
at D:\Teamium\Frontend-ERP\node_modules\webpack\lib\NormalModuleFactory.js:405:6
at D:\Teamium\Frontend-ERP\node_modules\webpack\lib\NormalModuleFactory.js:155:13
at AsyncSeriesWaterfallHook.eval [as callAsync] (eval at create (D:\Teamium\Frontend-ERP\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
at D:\Teamium\Frontend-ERP\node_modules\webpack\lib\NormalModuleFactory.js:138:29
at D:\Teamium\Frontend-ERP\node_modules\webpack\lib\NormalModuleFactory.js:342:9
at processTicksAndRejections (internal/process/task_queues.js:77:11)
i 「wdm」: Failed to compile.

Comment posted by Akhtar Raza
22 days ago.

After resolving this, I'm getting a new error.

error TS2345: Argument of type '{ cssOnly: boolean; cssClassPrefix: string; onLoad: (args: BubbleLoadArgs) => void; }' is not assignable to parameter of type 'BubbleConfig'.

Here is my ts code.

bubble: new DayPilot.Bubble({
cssOnly: true,
cssClassPrefix: "bubble_default",
})

Comment posted by Akhtar Raza
22 days ago.

ERROR in src/app/scheduler/group-agenda/group-agenda.component.ts(176,7): error TS2345: Argument of type '{ cssOnly: boolean; cssClassPrefix: string; onLoad: (args: BubbleLoadArgs) => void; }' is not assignable to parameter of type 'BubbleConfig'.
Object literal may only specify known properties, and 'cssOnly' does not exist in type 'BubbleConfig'.
src/app/scheduler/group-agenda/group-agenda.component.ts(2383,30): error TS2551: Property 'minutes' does not exist on type 'typeof Duration'. Did you mean 'ofMinutes'?
src/app/scheduler/group-scheduler/group-scheduler.component.ts(1812,30): error TS2551: Property 'minutes' does not exist on type 'typeof Duration'. Did you mean 'ofMinutes'?
src/app/scheduler/project-scheduler/project-scheduler.component.ts(121,7): error TS2345: Argument of type '{ cssOnly: boolean; cssClassPrefix: string; onLoad: (args: BubbleLoadArgs) => void; }' is not assignable to parameter of type 'BubbleConfig'.
Object literal may only specify known properties, and 'cssOnly' does not exist in type 'BubbleConfig'.
src/app/scheduler/project-scheduler/project-scheduler.component.ts(1805,30): error TS2551: Property 'minutes' does not exist on type 'typeof Duration'. Did you mean 'ofMinutes'?
src/app/scheduler/resources-cal/resources-cal.component.ts(613,7): error TS2345: Argument of type '{ cssOnly: boolean; cssClassPrefix: string; onLoad: (args: BubbleLoadArgs) => void; }' is not assignable to parameter of type 'BubbleConfig'.
Object literal may only specify known properties, and 'cssOnly' does not exist in type 'BubbleConfig'.
src/app/scheduler/schedule/scheduler.component.ts(203,7): error TS2345: Argument of type '{ cssOnly: boolean; cssClassPrefix: string; onLoad: (args: BubbleLoadArgs) => void; }' is not assignable to parameter of type 'BubbleConfig'.
Object literal may only specify known properties, and 'cssOnly' does not exist in type 'BubbleConfig'.
src/app/scheduler/schedule/scheduler.component.ts(2837,30): error TS2551: Property 'minutes' does not exist on type 'typeof Duration'. Did you mean 'ofMinutes'?
src/app/scheduler/show-program-scheduler/show-program-scheduler.component.ts(75,7): error TS2345: Argument of type '{ showAfter: number; cssOnly: boolean; cssClassPrefix: string; onLoad: (args: BubbleLoadArgs) => void; }' is not assignable to parameter of type 'BubbleConfig'.
Object literal may only specify known properties, and 'cssOnly' does not exist in type 'BubbleConfig'.
src/app/scheduler/user-scheduler/user-scheduler.component.ts(327,7): error TS2345: Argument of type '{ cssOnly: boolean; cssClassPrefix: string; onLoad: (args: BubbleLoadArgs) => void; }' is not assignable to parameter of type 'BubbleConfig'.
Object literal may only specify known properties, and 'cssOnly' does not exist in type 'BubbleConfig'

Answer posted by Dan Letecky [DayPilot]
22 days ago.

You can remove both properties. The "cssOnly" property is no longer used (the css-only mode is always active). The "cssClassPrefix" property has been replaced with "theme" - and "bubble_default" is the default value.

Comment posted by Akhtar Raza
22 days ago.

Getting error on minutes.

error TS2551: Property 'minutes' does not exist on type 'typeof Duration'. Did you mean 'ofMinutes'?

Here is my code

durationFromMinutes(minutes: number): DayPilot.Duration {
return DayPilot.Duration.minutes(minutes);
}

Comment posted by Dan Letecky [DayPilot]
22 days ago.

Use ofMinutes():

durationFromMinutes(minutes: number): DayPilot.Duration {
  return DayPilot.Duration.ofMinutes(minutes);
}
Comment posted by Akhtar Raza
22 days ago.

I used offMinutes. But for clarification, I posted here.

Thanks for your responce.

New Reply
This reply is
Your name (optional):