Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
So we have a super lovely Umbraco 8 running fine on our development machines, but when its being pushed to production(Azure DevOps), we get a frontend error in the backoffice:
Uncaught SyntaxError: Invalid regular expression flags
Uncaught ReferenceError: jQuery is not defined
at i (lazyload.min.js:1)
at HTMLScriptElement.p (lazyload.min.js:1)
This is being outputted in the console.
The wierd thing is, it was working when we were running 8.1.0, and I think it was after we pushed 8.1.1 it stopped working. The solution is working just fine, all apis we have build, works all okay, its just the backoffice.
We have tried a bunch of things:
Just updated to 8.1.2.
still the same issue.
I have figured out that its bound to debug=false in web.config.
But i removed all my code but still get it.
So im starting to scrape my solution to just being an umbraco 8.1.2 with modelsbuilder, and im still getting this error when debug is false.
Also tried all the tricks with CD bump etc.
Could you post the contents of /umbraco/Application for your site?
I thought worked, but still it throws errors.
So i digged into it, and installed a completely raw umbraco 8.1.2 and compared /umbraco to my /umbraco. Files where not the same!
So why wasnt they. Well it ended up as a NUGET error! I had updated from umbraco 8.1.1 to 8.1.2. And it my packages folder it still had a copy of 8.1.1. On build it copied this folder in, instead of the newest version. So wiping my packages, make nuget repull and rebuild all worked.
This is the real answer for this post: )
Thank you Steve for getting back to me.
And just as you wrote I think I got it fixed.
I think the issue started when we updated from 8.1 to 8.1.1, and it remove/replace all of the /umbraco folder with the new content. So som old files were roaming around. So to fix it.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted