Skip to content

Module build failed: ReferenceError: Unknown plugin "transform-decorators-legacy" #355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
iamvijaydev opened this issue Mar 17, 2017 · 1 comment

Comments

@iamvijaydev
Copy link

iamvijaydev commented Mar 17, 2017

I getting the following error when tried to integrate as per walkthrough. Any help is much appreciated. Thanks in advance.

ERROR in ./~/react-json-tree/lib/index.js
Module build failed: ReferenceError: Unknown plugin "transform-decorators-legacy" specified in "<path-removed-for-protection>\\node_modules\\react-json-tree\\.babelrc" at 0, attempted to resolve relative to "<path-removed-for-protection>\\node_modules\\react-json-tree"
    at <path-removed-for-protection>\node_modules\babel-core\lib\transformation\file\options\option-manager.js:180:17
    at Array.map (native)
    at Function.normalisePlugins (<path-removed-for-protection>\node_modules\babel-core\lib\transformation\file\options\option-manager.js:158:20)
    at OptionManager.mergeOptions (<path-removed-for-protection>\node_modules\babel-core\lib\transformation\file\options\option-manager.js:234:36)
    at OptionManager.init (<path-removed-for-protection>\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
    at File.initOptions (<path-removed-for-protection>\node_modules\babel-core\lib\transformation\file\index.js:212:65)
    at new File (<path-removed-for-protection>\node_modules\babel-core\lib\transformation\file\index.js:135:24)
    at Pipeline.transform (<path-removed-for-protection>\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
    at transpile (<path-removed-for-protection>\node_modules\babel-loader\lib\index.js:46:20)
    at Object.module.exports (<path-removed-for-protection>\node_modules\babel-loader\lib\index.js:155:20)
 @ ./~/redux-devtools-log-monitor/lib/LogMonitorEntry.js 27:21-47
 @ ./~/redux-devtools-log-monitor/lib/LogMonitorEntryList.js
 @ ./~/redux-devtools-log-monitor/lib/LogMonitor.js
 @ ./~/redux-devtools-log-monitor/lib/index.js
 @ ./src/containers/devTools/index.jsx
 @ ./src/containers/root/Root.dev.js
 @ ./src/containers/root/index.js
 @ ./src/index.js
 @ multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server react-hot-loader/patch webpack-dev-server/client?http://localhost:3000 webpack/hot/only-dev-server ./src/index.js
@iamvijaydev
Copy link
Author

I made a silly mistake in my webpack configuration. I forgot to exclude /node_modules/ from processing of /\.(js|jsx)$/ files. For more please read here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant