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.

ReferenceError: Unknown plugin - When deploying to CI sever (Cadetship)

See original GitHub issue

Hi

Am getting the Unknown plugin error when deploying to CI server. Do you have any idea what could be the cause?

My webpack configuration is following:

var webpack = require('webpack');

var babelSettings = { presets: ['react', 'es2015', 'stage-0'] };
babelSettings.plugins = ['transform-decorators-legacy'];

module.exports = {
  entry: './entry',
  module: {
    loaders: [
      { test: /\.tsx?$/, loader: 'babel?' + JSON.stringify(babelSettings) + '!awesome-typescript', exclude: /node_modules|lib/ },
      { test: /\.jsx?$/, loader: 'babel', query: babelSettings, exclude: /node_modules/ },
      { test: /\.css$/, loader: 'null' },
      { test: /\.(png|jpe?g)(\?.*)?$/, loader: 'url?limit=8182' },
      { test: /\.(svg|ttf|woff2?|eot)(\?.*)?$/, loader: 'file' }
    ]
  }
};

if (process.env.NODE_ENV !== 'production') {
  var ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin;
  module.exports.plugins = [new ForkCheckerPlugin()]
}

This is the error I am recieveing:

Errors prevented bundling:
While processing files with webpack:webpack (for target web.browser):
entry/client/webpack.conf.js: ./entry/client/entry.js
Module build failed: ReferenceError: Unknown plugin
"transform-decorators-legacy" specified in "base" at 0, attempted to resolve
relative to
"/home/rof/src/github.com/tomitrescak/kickstart-flowrouter/entry/client"
at
/home/rof/src/github.com/tomitrescak/kickstart-flowrouter/.meteor/local/webpack-npm/node_modules/babel-core/lib/transformation/file/options/option-manager.js:193:17

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
john-osullivancommented, Feb 1, 2016

Did some more debugging, it turns out the issue on our Windows machine was with symlinks.  The built-in ones made by the kickstart-hugeapp boilerplate didn’t work correctly on Windows 7 (although they were fine on Win10), so none of the required NPM packages could be found. We deleted the existing synlink, made a new one from cmd mklink, and all was well. Hope that gives you at least a little bit of guidance on your issues with the CI server! -------- Original message --------From: Tomas Trescak notifications@github.com Date: 1/31/2016 16:50 (GMT-05:00) To: loganfsmyth/babel-plugin-transform-decorators-legacy babel-plugin-transform-decorators-legacy@noreply.github.com Cc: john-osullivan johno@mit.edu Subject: Re: [babel-plugin-transform-decorators-legacy] ReferenceError: Unknown plugin - When deploying to CI sever (Cadetship) (#12) Bad news, no. Exon promised to take a look at it.

— Reply to this email directly or view it on GitHub.

0reactions
tomitrescakcommented, Jan 31, 2016

Bad news, no. Exon promised to take a look at it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module build failed: ReferenceError: Unknown plugin "import ...
src/index.js Module build failed: ReferenceError: Unknown plugin "import" specified in "base" at 0, attempted to resolve relative to ...
Read more >
GitLab CI/CD
Learn how to use GitLab CI/CD, the GitLab built-in Continuous Integration, Continuous Deployment, and Continuous Delivery toolset to build, test, and deploy ......
Read more >
ReferenceError: Unknown plugin "transform-runtime"
Remove @babel/plugin-transform-runtime from your package.json. Delete node_modules and package-lock.json. NPM/yarn install again.
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