-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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: Grunt attempted to load a .coffee file but CoffeeScript was not installed. #1725
Comments
should be fixed via https://github.com/gruntjs/grunt-cli/releases/tag/v1.4.1 |
@vladikoff just grabbed [email protected] and still getting the error. |
could you please try https://github.com/gruntjs/grunt-cli/releases/tag/v1.3.2 |
@vladikoff I managed to track it down to this Grunt plugin: https://github.com/berlysia/grunt-encode-asset-base64 The error occurs no matter what grunt-cli version I use, I tried 1.0.0 through 1.4.1 This is really weird as I was using grunt & grunt-cli with this plugin for several years without this error. The plugin is 6 years old! Is this something that can/should be fixed on the grunt side? Or is it on the plugin author to fix? |
Ah it occurs with grunt versions 1.2.0 and later, and this behavior was called out in the change notes. The plugin I linked uses both a js file and a coffee file... can grunt simply prioritize the js one to avoid the missing Coffee dependency issue? |
This reverts commit e820858.
* 1.4.1 * Revert "Revert liftoff changes due to gruntjs/grunt#1725 (#143)" This reverts commit e820858.
@derrickb i think migrating the plugin from coffeescript should fix it |
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [grunt-cli](https://redirect.github.com/gruntjs/grunt-cli) | [`~1.3` -> `~1.5.0`](https://renovatebot.com/diffs/npm/grunt-cli/1.3.2/1.5.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/grunt-cli/1.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/grunt-cli/1.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/grunt-cli/1.3.2/1.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/grunt-cli/1.3.2/1.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>gruntjs/grunt-cli (grunt-cli)</summary> ### [`v1.5.0`](https://redirect.github.com/gruntjs/grunt-cli/releases/tag/v1.5.0) [Compare Source](https://redirect.github.com/gruntjs/grunt-cli/compare/v1.4.3...v1.5.0) - package version for np [`7f5c4e8`](https://redirect.github.com/gruntjs/grunt-cli/commit/7f5c4e8) - v1.5.0 ([#​157](https://redirect.github.com/gruntjs/grunt-cli/issues/157)) [`bd5917d`](https://redirect.github.com/gruntjs/grunt-cli/commit/bd5917d) - Update from nopt 4.x to nopt 5.0.0 ([#​156](https://redirect.github.com/gruntjs/grunt-cli/issues/156)) [`f33cc6a`](https://redirect.github.com/gruntjs/grunt-cli/commit/f33cc6a) - Updated dependencies on v8flags to latest, v8flags no longer uses an md5 hash. ([#​154](https://redirect.github.com/gruntjs/grunt-cli/issues/154)) [`670029a`](https://redirect.github.com/gruntjs/grunt-cli/commit/670029a) ### [`v1.4.3`](https://redirect.github.com/gruntjs/grunt-cli/releases/tag/v1.4.3) [Compare Source](https://redirect.github.com/gruntjs/grunt-cli/compare/v1.4.2...v1.4.3) - Fix preload option ([#​147](https://redirect.github.com/gruntjs/grunt-cli/issues/147)) [`07f3b0d`](https://redirect.github.com/gruntjs/grunt-cli/commit/07f3b0d) - Revert liftoff ([#​144](https://redirect.github.com/gruntjs/grunt-cli/issues/144)) [`4d691e2`](https://redirect.github.com/gruntjs/grunt-cli/commit/4d691e2) - Revert liftoff changes due to [https://github.com/gruntjs/grunt/issues/1725](https://redirect.github.com/gruntjs/grunt/issues/1725) ([#​143](https://redirect.github.com/gruntjs/grunt-cli/issues/143)) [`e820858`](https://redirect.github.com/gruntjs/grunt-cli/commit/e820858) ### [`v1.4.2`](https://redirect.github.com/gruntjs/grunt-cli/releases/tag/v1.4.2) [Compare Source](https://redirect.github.com/gruntjs/grunt-cli/compare/v1.4.1...v1.4.2) - Revert liftoff ([#​144](https://redirect.github.com/gruntjs/grunt-cli/issues/144)) [`4d691e2`](https://redirect.github.com/gruntjs/grunt-cli/commit/4d691e2) - Revert liftoff changes due to [https://github.com/gruntjs/grunt/issues/1725](https://redirect.github.com/gruntjs/grunt/issues/1725) ([#​143](https://redirect.github.com/gruntjs/grunt-cli/issues/143)) [`e820858`](https://redirect.github.com/gruntjs/grunt-cli/commit/e820858) ### [`v1.4.1`](https://redirect.github.com/gruntjs/grunt-cli/releases/tag/v1.4.1) [Compare Source](https://redirect.github.com/gruntjs/grunt-cli/compare/v1.4.0...v1.4.1) - Revert liftoff changes due to [https://github.com/gruntjs/grunt/issues/1725](https://redirect.github.com/gruntjs/grunt/issues/1725) ([#​143](https://redirect.github.com/gruntjs/grunt-cli/issues/143)) [`e820858`](https://redirect.github.com/gruntjs/grunt-cli/commit/e820858) ### [`v1.4.0`](https://redirect.github.com/gruntjs/grunt-cli/releases/tag/v1.4.0) [Compare Source](https://redirect.github.com/gruntjs/grunt-cli/compare/v1.3.2...v1.4.0) - Update changelog [`bbc4400`](https://redirect.github.com/gruntjs/grunt-cli/commit/bbc4400) - Ignore package-lock [`3fa5bf6`](https://redirect.github.com/gruntjs/grunt-cli/commit/3fa5bf6) - Update deps, switch to actions ([#​141](https://redirect.github.com/gruntjs/grunt-cli/issues/141)) [`c271173`](https://redirect.github.com/gruntjs/grunt-cli/commit/c271173) - Bump deps, required node version and ci ([#​137](https://redirect.github.com/gruntjs/grunt-cli/issues/137)) [`84ebcb8`](https://redirect.github.com/gruntjs/grunt-cli/commit/84ebcb8) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/davidsneighbour/hugo-modules). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
I've just come back to my project on a fresh Windows install after some months away from it. I've been using grunt with a Gruntfile.js for years without this issue.
I installed grunt-cli 1.4.0 and get this error when attempting to run grunt in my project:
I'm not using any CoffeeScript files, and do not want to add it as a dependency just to clear this error. I get the error for almost every task in my grunt file.
I tried running
npm i -f
as I saw that referenced elsewhere from a google search. I also updated local grunt to 1.3.0The text was updated successfully, but these errors were encountered: