-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
assets:precompile dosnt create packs dir - shakapacker 7.0.0.rc.0 #305
Comments
@lpincu webpack has an error and thus there's no manifest.json. Run /bin/shakapacker and post the output. You can wrap in |
|
@justin808 |
@lpincu |
@ahangarha
|
@lpincu In case you need information. please update your Gemfile with the following line: gem "shakapacker", github: "shakacode/shakapacker", branch: "fix-check-binstubs-rake-task" |
It would be hard for me to be able to reproduce this issue. May you please create a simple repo demonstrating this issue and share it with us so we can work on the issue? |
@ahangarha |
Thanks for the update Is the whole issue resolved? |
Any view on getting this in to a rc? |
We might make the final release. Meanwhile, use |
I can confirm using the latest changes on the master branch fixes this issue for me. |
@benj3 Thanks for testing and confirming the solution. |
Hello
i working on replacing
Webpacker
withshakapacker
Ive started with
Webpacker 5.2.2
and replaced it withshakapacker
using this guideWebpacker 5.2.2 -> shakapacker v6.0.0.rc.6 -> shakapacker 6.5.6 -> shakapacker 6.6.0 -> shakapacker 7.0.0.rc.0
The reason im upgrading from V6 to V7 is because of this issue
V6 worked great for me (in dev env) and all the react pages works fine and render without any errors
After upgrading to V7RC
assets:precompile
is not compiling anything, i didnt move any of my component's entry points.all of the entry points are located in
frontend/app/javascript/packs/
while trying to reach to my app im getting the following error
when trying to run
RAILS_ENV=dev bundle exec rake assets:precompile
nothing is happening andpacks
dir is not exists anywhere(we are using RAILS_ENV=dev and not development didnt have any issues with it in V6)
cd public/packs -bash: cd: public/packs: No such file or directory
(Note: the warnings are not new and we have them in webpacker 5.2.2 too)
when im using
./bin/shakapacker
its seems like its works fine and packs dir along with all the expected files are createdand the app working perfectly fine
there are any breaking changes related to
assets:precompile
in this version?frontend/config/shakapacker.yml
frontend/config/webpack/webpack.config.js
frontend/config/webpack/development.js
Expected behavior:
assets:precompile should create
packs
dir along withmanifest.json
and other dir and filesimportant note i put
console.log
inwebpack.config.js
and the log is printed while im using./bin/shakapacker
and not when usingassets:precompile
Actual behavior:
nothing happen
no errors in console
Setup environment:
Rails 6.0.6.1
ruby 2.6.6p146
Node v14.17.1
package.json
"shakapacker": "7.0.0-rc.0",
Gemfile
gem 'shakapacker', '7.0.0.rc.0'
The text was updated successfully, but these errors were encountered: