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.

Help with error: "Unknown plugin 'module-alias'"

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
webroncommented, Jun 23, 2017

Great! Does this mean the issue can be closed? 😉

0reactions
JimSterlingcommented, Jun 23, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] "Unknown plugin" in linked or aliased modules while ...
I'm getting an error like this: Module build failed: ReferenceError: Unknown plugin "transform-es2015-arrow-functions" specified in "base" ...
Read more >
Unable to resolve module when building react-native .apk ...
It seems that projectRoots option is gone probably? Not quite sure, running react-native -h doesn't show it in the list. error: unknown option ......
Read more >
babel-plugin-module-resolver - npm
This plugin allows you to add new "root" directories that contain your modules. It also allows you to setup a custom alias for...
Read more >
Resolve | webpack
resolve.alias. object. Create aliases to import or require certain modules more easily. For example, to alias a bunch of commonly used src/ folders:....
Read more >
babel/plugin-transform-runtime
A plugin that enables the re-use of Babel's injected helper code to save on codesize.
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