-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Webpacker Issue after upgrading to 5.0 #1937
Comments
Hey. Thanks for reporting this issue and welcome to AlchemyCMS. The maintainer have been notified. Please be patient while waiting for an answer. Open Source is done by volunteers, so give them some time to react. Meanwhile please think about sending a PR that fixes this issue. It is way more likely that it will be accepted than this bug fixed for you. Remember OpenSource is done by all of us. Again, thanks for reporting. |
I am having the same error. How did you fix this issue?
|
I am still having the issue |
I have created an empty file in app/assets/ajvascript/pack/alchemy/admin.js This fixes the error. However I dont know if something else is missing... |
How did you exactly updated Alchemy? The
task should have added the npm module to your
If this is not the case then please add the npm module via
and try again. |
I am having a fresh setup. Following your steps im getting the following error:
|
That way you miss the features added as ES6 modules to the Alchemy admin. Please remove that file and run
|
Thank you. I have added the package successfully.
However the error "ActionView::Template::Error (Webpacker can't find alchemy/admin.js" ... is still there. How does your rails asset.rb look like? |
Sprockets is not involved in the Webpack game. Is this locally? Then try to start the Webpack dev server
and try again. |
Yes, this is in development / locally. The webpack dev server is running.
I am still receiving this error. Something is still missing... |
@ck2000 did you get this working? I'm currently upgrading to 5.0 and having this same problem. Added the yarn package (which wasn't automatically added by the ugprader) but still no luck and the same error:
|
I have created the alchemy/admin.js file manually. You have to put it in here - just in case you are not familiar with webpacker - app/javascript/packs/alchemy/admin.js The file runs the import of the yarn package:
|
Thanks! I had actually just come across this method in the install generator which copies alchemy's admin.js into my app's javascript/packs dir: https://github.com/tvdeyen/alchemy_cms/blob/0df93dc9cdce472058d07fffb8d002cc9de08be8/lib/generators/alchemy/install/install_generator.rb#L94 |
@dbwinger this should happen during upgrading as well. Thanks for pointing that out. |
Steps to reproduce
Expected behavior
Alchemy should load as usual
Actual behavior
Webpack error "Webpacker can't find alchemy/admin.js"
System configuration
The text was updated successfully, but these errors were encountered: