ReferenceError: Unknown plugin - When deploying to CI sever (Cadetship)
See original GitHub issueHi
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:
- Created 8 years ago
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Bad news, no. Exon promised to take a look at it.