Base solution for your next web application
Open Closed

abp.clock.provider undefined ? #5760


User avatar
0
uabel created

Hello, when I start my project I get the following error:

GetScripts:928 Uncaught TypeError: Cannot set property 'provider' of undefined in GetScripts:928

(function(){ abp.clock.provider = abp.timing.utcClockProvider || abp.timing.localClockProvider; abp.clock.provider.supportsMultipleTimezone = true; abp.timing.timeZoneInfo = { windows: { timeZoneId: 'UTC', baseUtcOffsetInMilliseconds: '0', currentUtcOffsetInMilliseconds: '0', isDaylightSavingTimeNow: 'False' }, iana: { timeZoneId:'Etc/UTC' }, } })();

In the following function, clock is empty. but not abp.

Any suggestions?

If I then click on the application on the start page many more errors.

The project is almost new and we have not adapted much yet. Last time it worked too.

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

6 Answer(s)
  • User Avatar
    0
    ryancyq created
    Support Team

    Hi, are you using jquery template? which version?

    you can try to remove node_modules and rebundle the scripts. See aspnetzero documentation

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    uabel created

    We're using ASP.NET MVC 5.x & AngularJS 1.x.

    ABP 3.8.3

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    uabel created

    It is running again. I have no idea why ... I only updated some packages (ABP ...)

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    uabel created

    Error ist Back again, any ideas ?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @uabel

    Is this the only javascript error on the browser console ? If you have another javascript error related to AngularJS, it might cause this error as well.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Closing due to inactivity.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)