enkelmedia / TheDashboard

Magic dashboard for Umbraco
MIT License
39 stars 42 forks source link

Not showing in RC3 #64

Closed smarshallsay closed 3 years ago

smarshallsay commented 3 years ago

Hi, I tried to install the latest version 9.0.0-rc003 on Umbraco 9 RC3 but it is not showing correctly in backoffice (just get a blank 'welcome' tab). Note I did have an older version installed and working on RC2, but removed it when it wasn't working for RC3 so I wonder if there is any leftover data somewhere? (I deleted the plugin folder and DLLs after uninstalling) The error in the chrome console is:

umbraco-backoffice-js.js.v1:152 Error: [$controller:ctrlreg] http://errors.angularjs.org/1.8.0/$controller/ctrlreg?p0=Our.Umbraco.TheDashboard.Controller at umbraco-backoffice-js.js.v1:32 at umbraco-backoffice-js.js.v1:123 at ea (umbraco-backoffice-js.js.v1:105) at p (umbraco-backoffice-js.js.v1:96) at g (umbraco-backoffice-js.js.v1:90) at umbraco-backoffice-js.js.v1:89 at Object.link (umbraco-backoffice-js.js.v1:326) at umbraco-backoffice-js.js.v1:42 at Ca (umbraco-backoffice-js.js.v1:114) at p (umbraco-backoffice-js.js.v1:98) '

' (anonymous) @ umbraco-backoffice-js.js.v1:152

Any ideas?

Thank you!

enkelmedia commented 3 years ago

Looks like the js-file does not get included in the bundle, do you see the js-file on disk? Could it be cache-related? If there is a way to run without caching maybe?

smarshallsay commented 3 years ago

the TheDashboard.controller.js is in the app_plugins\our.umbraco.thedashboard folder, chrome cache is turned off. I also tried deleting the smidge folder and restarting, which as I understand it is v9's equivalent to clientdependency

smarshallsay commented 3 years ago

Aha I have found the issue, it seems the paths in the package.manifest are case sensitive. My App_Plugins folder is cased like this, I updated the paths in the manifest and it now works

{ "javascript" : [ "/App_Plugins/Our.Umbraco.TheDashboard/TheDashboard.controller.js" ], "css": [ "/App_Plugins/Our.Umbraco.TheDashboard/TheDashboard.css" ] }

I guess this is related to this post from 2019 https://github.com/umbraco/Umbraco-CMS/issues/4654

enkelmedia commented 3 years ago

Hmm… are you running on Windows?

smarshallsay commented 3 years ago

Yep Windows 10

smarshallsay commented 3 years ago

This is affecting a Windows Server machine I just dpployed to also so I don't think its an issue related to my machine

enkelmedia commented 3 years ago

Thanks! I'll try and see if I can replicate and solve this.

olibos commented 3 years ago

Hello,

I had the same issue, I've added a PR to fix it 😉

Have a nice day, Olivier

enkelmedia commented 3 years ago

Great stuff! I’ll have a look asap

enkelmedia commented 3 years ago

Should be fixed by the nice updates from @olibos

olibos commented 3 years ago

Thanks @enkelmedia , let me know when the new RC is available.