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

The asset 'hotwire_spark.js' was not found in the load path #61

Open
atstockland opened this issue Jan 3, 2025 · 5 comments
Open

The asset 'hotwire_spark.js' was not found in the load path #61

atstockland opened this issue Jan 3, 2025 · 5 comments

Comments

@atstockland
Copy link

Hi! I don't have much information to add beyond the title. I installed the gem, hit refresh, and got the following error:

The asset 'hotwire_spark.js' was not found in the load path

The console give slightly more:

Propshaft::MissingAssetError - The asset 'hotwire_spark.js' was not found in the load path.:

I'm not altering load_path in application.js. Not sure why else it wouldn't see hotwire_spark.js

Thanks

@mattmenefee
Copy link

mattmenefee commented Jan 8, 2025

@atstockland can you test whether #65 fixes your issue?

@atstockland
Copy link
Author

Unfortunately, no. Same same.

image

@atstockland
Copy link
Author

@mattmenefee were you able to still reproduce this? I don't think it's my configuration but I'm open to that possibility.

@mattmenefee
Copy link

@atstockland yes, I'm still having this issue, but #65 fixes it for me because I have a model in my app named Asset which conflicts with using the asset_path helper to locate the hotwire_spark.js file.

I haven't switched to using Propshaft yet, so I'm not sure if that's the culprit regarding your issue or if it's something else. Sorry I couldn't help any further!

@atstockland
Copy link
Author

@atstockland can you test whether #65 fixes your issue?

I'm using esbuild. I don't have Asset.rb model or resources :assets in my route file. My initializers/assets.rb file simply has:

Rails.application.config.assets.version = '1.0'

As far as I can tell, #65 doesn't help me fix it.

Thanks! I'll keep trying to figure it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants