Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 404 on assets.js when running Umbraco 14 + Block Preview on Ubuntu 24.04 #68

Open
psclrzn opened this issue Sep 3, 2024 · 7 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@psclrzn
Copy link

psclrzn commented Sep 3, 2024

Which Umbraco.Community.BlockPreview version are you using?

2.0.2

Which Umbraco version are you using? For example: 10.4.0 - don't just write v10

14.2

Bug summary

My current setup:
Ubuntu 24.04
VS Code 1.92.2
.NET 8.0.108
Umbraco 14.2

When trying to run my Umbraco website with Block Preview, in the back office I get a 404 error on /app_plugins/Community.BlockPreview/assets.js. This error does not appear in Windows (I quickly tests with a VM, didn't investigated much in Windows). I assume it might be caused by the case-sensivity of the Linux file system.

Steps to reproduce

Just login to the back office of an Umbraco website that uses Block Preview
Go to Content and select any content page that uses Block Preview
Open Code Inspector (F12 generally) in your browser. Check Console for error message.

Expected result / actual result

Block Preview should work properly in an Linux environment

@psclrzn psclrzn added the bug Something isn't working label Sep 3, 2024
@psclrzn
Copy link
Author

psclrzn commented Sep 7, 2024

I tried to commit a fix and create a Pull Request but it didn't work.

Basic fix is to change the js path in umbraco-package.json.

{
  "$schema": "../umbraco-package-schema.json",
  "name": "Umbraco.Community.BlockPreview",
  "id": "Umbraco.Community.BlockPreview",
  "version": "2.0.2",
  "allowTelemetry": true,
  "extensions": [
    {
      "name": "Umbraco.Community.BlockPreview.EntryPoint",
      "alias": "Umbraco.Community.BlockPreview.EntryPoint",
      "type": "entryPoint",
      "js": "/App_Plugins/Umbraco.Community.BlockPreview/assets.js"
    }
  ]
}

@kevin9092
Copy link
Contributor

This should be resolved once PR #71 is merged.

@psclrzn
Copy link
Author

psclrzn commented Oct 9, 2024

Thanks. I've seen the PR has been merged.

Do we have an ETA for the release that will include this fix?

@kevin9092
Copy link
Contributor

I am not sure.

@rickbutterfield do you have a schedule for when the latest v1 / v2 changes are going to be released?

@rickbutterfield
Copy link
Owner

Hey @psclrzn - it will likely be at the end of the month!

@psclrzn
Copy link
Author

psclrzn commented Oct 16, 2024

Thank you.

@rickbutterfield
Copy link
Owner

@psclrzn The fix for this is included in 2.0.3 which is currently being released to NuGet. Please give it a try and report back!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants