question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What happened to CoffeeScript?

See original GitHub issue

CoffeeScript was supported in Laravel Elixir, and so, I wrote a lot of CoffeeScript. Now, when I run npm run dev, I get an error that says (...) .coffee is not a function. Is there no support for CoffeeScript in Laravel Mix?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
JeffreyWaycommented, Feb 4, 2017

which makes it a little strange why those five minutes weren’t spent when coding Mix, really

Not strange at all. CoffeeScript support wasn’t included for the same reason why Stylus, Typescript, etc. also weren’t included. Every new preprocessor adds bloat to Mix, and increases the number of dependencies that folks must download.

Here’s how to add CoffeeScript support in thirty seconds.

// npm install coffee-loader coffee-script

mix.js('resources/assets/js/app.coffee', 'public/js')
   .webpackConfig({
        module: {
            rules: [
                { test: /\.coffee$/, loader: 'coffee-loader' }
            ]
        }
   });
2reactions
piperonecommented, Feb 4, 2017

Thanks a friggin bunch for hanging those that do use it out to dry. You yourself maintained a CoffeeScript addon-module for Elixir, so there was support for CoffeeScript right up to the moment you released Mix.

May I suggest preparing the community before you drop support like this next time?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Happened to CoffeeScript, the First Big JavaScript ...
After switching from JavaScript to CoffeeScript and using it for five years, a new switch came: TypeScript arrived and gained popularity.
Read more >
Is CoffeeScript dead? - Quora
For most intents and purposes, I would argue CoffeeScript is virtually dead. There's just very little, if any, reason to use it, let...
Read more >
Announcing CoffeeScript 2
We are pleased to announce CoffeeScript 2! This new release of the CoffeeScript language and compiler aims to bring CoffeeScript into the modern...
Read more >
Coffee… what? How Developers Quit To Use CoffeeScript
As of today - January 2020, CoffeeScript is completely dead on the market (though the GitHub repository is still kinda alive). Knowledge of...
Read more >
Why CoffeeScript is still alive - codeburst
With the rise of ES6/7 and TypeScript, it seemed like CoffeeScript would become obsolete. But it's not. ... CoffeeScript was one of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found