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.

Babel plugin unknown error on fresh install

See original GitHub issue

I tried to test different branches: master, feature/redux When I hit npm run I got the following:

C:\Users\mzol1\projects\speed5online\redux_app>npm start

> @ start C:\Users\mzol1\projects\speed5online\redux_app
> babel-node tools/run start

C:\Users\x\projects\y\redux_app\node_modules\babel-core\lib\transformation\file\options\option-manager.js:176
          throw new ReferenceError(messages.get("pluginUnknown", plugin, loc, i, dirname));
          ^

ReferenceError: Unknown plugin "syntax-trailing-function-commas" specified in "C:\\Users\\mzol1\\projects\\speed5online\\redux_app\\package.json" at 0, attempted to resolve relative to "C:\\Users\\mzol1\\projects\\speed5online\\redux_app"
    at C:\Users\mzol1\projects\speed5online\redux_app\node_modules\babel-core\lib\transformation\file\options\option-manager.js:176:17
    at Array.map (native)
    at Function.normalisePlugins (C:\Users\mzol1\projects\speed5online\redux_app\node_modules\babel-core\lib\transformation\file\options\option-manager.js:154:20)
    at OptionManager.mergeOptions (C:\Users\mzol1\projects\speed5online\redux_app\node_modules\babel-core\lib\transformation\file\options\option-manager.js:229:36)
    at OptionManager.init (C:\Users\mzol1\projects\speed5online\redux_app\node_modules\babel-core\lib\transformation\file\options\option-manager.js:374:12)
    at compile (C:\Users\mzol1\projects\speed5online\redux_app\node_modules\babel-register\lib\node.js:103:45)
    at loader (C:\Users\mzol1\projects\speed5online\redux_app\node_modules\babel-register\lib\node.js:144:14)
    at Object.require.extensions.(anonymous function) [as .js] (C:\Users\mzol1\projects\speed5online\redux_app\node_modules\babel-register\lib\node.js:154:7)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v7.2.0
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! @ start: `babel-node tools/run start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script 'babel-node tools/run start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the  package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     babel-node tools/run start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\mzol1\projects\speed5online\redux_app\npm-debug.log

Does anybody have an idea why this is happening?

Issue Analytics

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

github_iconTop GitHub Comments

6reactions
sophiabersanicommented, Dec 7, 2016

Ran into the same issue this morning, caused by an outdated install of Node on Win10.

This seems to have taken care of the problem for me.

  • Update Node to latest stable version.
  • Delete node_modules folder.
  • npm install
  • npm start
0reactions
ulanicommented, May 27, 2021

@zoltan-molnar thank you very much for crating this issue! Unfortunately, we have close it due to inactivity. Feel free to re-open it or join our Discord channel for discussion.

NOTE: The main branch has been updated with React Starter Kit v2, using JAM-style architecture.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React native fresh install ReferenceError: Unknown plugin ...
1) Remove .babelrc by doing rm -rf .babelrc inside root folder. 2) Revert babel-preset-react-native to the version 2.0.0.
Read more >
Babel CLI
While you can install Babel CLI globally on your machine, it's much better to install it locally project by project. There are two...
Read more >
@rollup/plugin-babel - npm
@rollup/plugin-babel. A Rollup plugin for seamless integration between Rollup and Babel. Why? If you're using Babel to transpile your ...
Read more >
babel-loader - webpack
See the docs for more information. NOTE: You must run npm install -D @babel/plugin-transform-runtime to include this in your project and @babel ...
Read more >
npm err! unknown: unknown error, rename - You.com | The Search ...
Ionic 1 - npm install error - unknown revision in working tree ... UI\GEINE_Platform\node_modules\@babel\plugin-proposal-optional-catch-binding.
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