Help with error: "Unknown plugin 'module-alias'"
See original GitHub issueI am getting the following error when running npm run build. I have tried it in v3.0.12, v3.0.14, and v3.0.15. I am using CentOS 7, and I can get the build to complete when I run it in the directory I have checked out the repo in.
ERROR in ./src/core/index.js Module build failed: ReferenceError: Unknown plugin “module-alias” specified in “/var/www/swagger-ui/.babelrc” at 0, attempted to resolve relative to “/var/www/swagger-ui” at /var/www/swagger-ui/releases/v3.0.15/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17 at Array.map (native) at Function.normalisePlugins (/var/www/swagger-ui/releases/v3.0.15/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20) at OptionManager.mergeOptions (/var/www/swagger-ui/releases/v3.0.15/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36) at OptionManager.init (/var/www/swagger-ui/releases/v3.0.15/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12) at File.initOptions (/var/www/swagger-ui/releases/v3.0.15/node_modules/babel-core/lib/transformation/file/index.js:212:65) at new File (/var/www/swagger-ui/releases/v3.0.15/node_modules/babel-core/lib/transformation/file/index.js:135:24) at Pipeline.transform (/var/www/swagger-ui/releases/v3.0.15/node_modules/babel-core/lib/transformation/pipeline.js:46:16) at transpile (/var/www/swagger-ui/releases/v3.0.15/node_modules/babel-loader/lib/index.js:46:20) at Object.module.exports (/var/www/swagger-ui/releases/v3.0.15/node_modules/babel-loader/lib/index.js:163:20) @ multi swagger-ui-bundle
Issue Analytics
- State:
 - Created 6 years ago
 - Comments:5 (3 by maintainers)
 

Top Related StackOverflow Question
Great! Does this mean the issue can be closed? 😉
That might have done it. But I downloded the zip of the master branch, and moved it over using winSCP, and it worked. So I think it might be the “.” folders