Heroku - Build fail “LoadError: canot load such file — coffee_script”












2















As the title states, I'm unable to complete a build on Heroku after removing gem 'coffee-rails' from my Gemfile.



Below is the error message as well as a few lines before that show that it is removing coffee-script.



remote:        Removing coffee-script (2.4.1)
remote: Removing coffee-script-source (1.12.2)
remote: Removing coffee-rails (4.2.2)
remote: The latest bundler is 2.0.0.pre.3, but you are currently running 1.15.2.
remote: To update, run `gem install bundler --pre`
remote: -----> Installing node-v8.10.0-linux-x64
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: Yarn executable was not detected in the system.
remote: Download Yarn at https://yarnpkg.com/en/docs/install
remote: rake aborted!
remote: LoadError: cannot load such file -- coffee_script
remote: /tmp/build_dc46e31874491817c9a77e17cf3ac4d1/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'


To me, it looks like this could be an issue with Bootsnap on Heroku.



Steps I've taken:




  1. Removed gem 'coffee-rails' Ran bundle update .

  2. Removed all references to coffee script per this answer

  3. Added, committed and pushed the updated Gemfile and Gemfile.lock to my master branch.

  4. Ran rake tmp:cache:clear on Heroku via bash.

  5. Restarted dyno


At this point, I'm tempted to just keep the gem installed as I've confirmed that the build passes.



Any assistance would be wonderful.



Edit: I have staging app setup that had this same issue. Simply starting a new staging app/remote solved the issue, so that's why I'm leaning towards a cache issue.










share|improve this question























  • Try deleting tmp/cache/bootsnap-compile-cache and tmp/cache/bootsnap-load-path-cache

    – Tom
    Jan 2 at 21:16











  • @Tom Thank you - I did remove those, but they are recreated on dyno restart.

    – troxwalt
    Jan 2 at 21:34
















2















As the title states, I'm unable to complete a build on Heroku after removing gem 'coffee-rails' from my Gemfile.



Below is the error message as well as a few lines before that show that it is removing coffee-script.



remote:        Removing coffee-script (2.4.1)
remote: Removing coffee-script-source (1.12.2)
remote: Removing coffee-rails (4.2.2)
remote: The latest bundler is 2.0.0.pre.3, but you are currently running 1.15.2.
remote: To update, run `gem install bundler --pre`
remote: -----> Installing node-v8.10.0-linux-x64
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: Yarn executable was not detected in the system.
remote: Download Yarn at https://yarnpkg.com/en/docs/install
remote: rake aborted!
remote: LoadError: cannot load such file -- coffee_script
remote: /tmp/build_dc46e31874491817c9a77e17cf3ac4d1/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'


To me, it looks like this could be an issue with Bootsnap on Heroku.



Steps I've taken:




  1. Removed gem 'coffee-rails' Ran bundle update .

  2. Removed all references to coffee script per this answer

  3. Added, committed and pushed the updated Gemfile and Gemfile.lock to my master branch.

  4. Ran rake tmp:cache:clear on Heroku via bash.

  5. Restarted dyno


At this point, I'm tempted to just keep the gem installed as I've confirmed that the build passes.



Any assistance would be wonderful.



Edit: I have staging app setup that had this same issue. Simply starting a new staging app/remote solved the issue, so that's why I'm leaning towards a cache issue.










share|improve this question























  • Try deleting tmp/cache/bootsnap-compile-cache and tmp/cache/bootsnap-load-path-cache

    – Tom
    Jan 2 at 21:16











  • @Tom Thank you - I did remove those, but they are recreated on dyno restart.

    – troxwalt
    Jan 2 at 21:34














2












2








2








As the title states, I'm unable to complete a build on Heroku after removing gem 'coffee-rails' from my Gemfile.



Below is the error message as well as a few lines before that show that it is removing coffee-script.



remote:        Removing coffee-script (2.4.1)
remote: Removing coffee-script-source (1.12.2)
remote: Removing coffee-rails (4.2.2)
remote: The latest bundler is 2.0.0.pre.3, but you are currently running 1.15.2.
remote: To update, run `gem install bundler --pre`
remote: -----> Installing node-v8.10.0-linux-x64
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: Yarn executable was not detected in the system.
remote: Download Yarn at https://yarnpkg.com/en/docs/install
remote: rake aborted!
remote: LoadError: cannot load such file -- coffee_script
remote: /tmp/build_dc46e31874491817c9a77e17cf3ac4d1/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'


To me, it looks like this could be an issue with Bootsnap on Heroku.



Steps I've taken:




  1. Removed gem 'coffee-rails' Ran bundle update .

  2. Removed all references to coffee script per this answer

  3. Added, committed and pushed the updated Gemfile and Gemfile.lock to my master branch.

  4. Ran rake tmp:cache:clear on Heroku via bash.

  5. Restarted dyno


At this point, I'm tempted to just keep the gem installed as I've confirmed that the build passes.



Any assistance would be wonderful.



Edit: I have staging app setup that had this same issue. Simply starting a new staging app/remote solved the issue, so that's why I'm leaning towards a cache issue.










share|improve this question














As the title states, I'm unable to complete a build on Heroku after removing gem 'coffee-rails' from my Gemfile.



Below is the error message as well as a few lines before that show that it is removing coffee-script.



remote:        Removing coffee-script (2.4.1)
remote: Removing coffee-script-source (1.12.2)
remote: Removing coffee-rails (4.2.2)
remote: The latest bundler is 2.0.0.pre.3, but you are currently running 1.15.2.
remote: To update, run `gem install bundler --pre`
remote: -----> Installing node-v8.10.0-linux-x64
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: Yarn executable was not detected in the system.
remote: Download Yarn at https://yarnpkg.com/en/docs/install
remote: rake aborted!
remote: LoadError: cannot load such file -- coffee_script
remote: /tmp/build_dc46e31874491817c9a77e17cf3ac4d1/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'


To me, it looks like this could be an issue with Bootsnap on Heroku.



Steps I've taken:




  1. Removed gem 'coffee-rails' Ran bundle update .

  2. Removed all references to coffee script per this answer

  3. Added, committed and pushed the updated Gemfile and Gemfile.lock to my master branch.

  4. Ran rake tmp:cache:clear on Heroku via bash.

  5. Restarted dyno


At this point, I'm tempted to just keep the gem installed as I've confirmed that the build passes.



Any assistance would be wonderful.



Edit: I have staging app setup that had this same issue. Simply starting a new staging app/remote solved the issue, so that's why I'm leaning towards a cache issue.







ruby-on-rails heroku assets






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 2 at 20:35









troxwalttroxwalt

141210




141210













  • Try deleting tmp/cache/bootsnap-compile-cache and tmp/cache/bootsnap-load-path-cache

    – Tom
    Jan 2 at 21:16











  • @Tom Thank you - I did remove those, but they are recreated on dyno restart.

    – troxwalt
    Jan 2 at 21:34



















  • Try deleting tmp/cache/bootsnap-compile-cache and tmp/cache/bootsnap-load-path-cache

    – Tom
    Jan 2 at 21:16











  • @Tom Thank you - I did remove those, but they are recreated on dyno restart.

    – troxwalt
    Jan 2 at 21:34

















Try deleting tmp/cache/bootsnap-compile-cache and tmp/cache/bootsnap-load-path-cache

– Tom
Jan 2 at 21:16





Try deleting tmp/cache/bootsnap-compile-cache and tmp/cache/bootsnap-load-path-cache

– Tom
Jan 2 at 21:16













@Tom Thank you - I did remove those, but they are recreated on dyno restart.

– troxwalt
Jan 2 at 21:34





@Tom Thank you - I did remove those, but they are recreated on dyno restart.

– troxwalt
Jan 2 at 21:34












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54012826%2fheroku-build-fail-loaderror-canot-load-such-file-coffee-script%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54012826%2fheroku-build-fail-loaderror-canot-load-such-file-coffee-script%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith