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.

Fresh install of decaffeinate is throwing a babel compile error

See original GitHub issue

decaffeinate is crashing on my CoffeeScript input:

language = "coffeescript"

https://decaffeinate-project.org/repl/#?useCS2=false&useJSModules=false&loose=false&optionalChaining=false&evaluate=true&stage=full&code=language %3D "coffeescript"

I get this error:

Error: Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.
Only getting this locally, not on the repl

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:11

github_iconTop GitHub Comments

2reactions
eventualbuddhacommented, Aug 19, 2021

Alright, I believe this is fixed now since decaffeinate depends on @codemod/parser@^1.1.0, which should pull in 1.1.1 which I just published. If itโ€™s still not working feel free to comment again.

2reactions
eventualbuddhacommented, Aug 19, 2021

It seems likely this was broken by https://github.com/babel/babel/pull/13191, which means babel 7.15.x probably broke some assumptions made by @codemod/parser. Iโ€™ve reproduced the error there and will issue a fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when compiling with babel - node.js - Stack Overflow
I found that the 'npm run build' will call 'babel src --out-dir lib' firstly in package. json. So this errors was throw by...
Read more >
Bug Report - GitHub
Recently I'm trying to setup babel with webpack. and I'm getting an error. ERROR in ./src/index.js Module build failed (from ./node_modules/ย ...
Read more >
Babel Users' Guide - LLNL Software Portal
Decaf demonstrates how Babel can be used to implement a component framework. ... with an error, but if the configuration works, the build...
Read more >
sucrase - npm
Sucrase is an alternative to Babel that allows super-fast development builds. Instead of compiling a large range of JS features to be able...
Read more >
Circular errors about babel-loader when trying to launch app
Remove "babel-loader" from dependencies and/or devDependencies in the package.json file in your project folder. Run npm install or yarn,ย ...
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