Topic: Module build failed: ReferenceError: Unknown plugin "transform-runtime"

guru93 free asked 6 years ago


I have downloaded a new package from MDB Vue.js  after I installed npm using this command npm install --save after npm got installed I tried to run the package in my localhost using this command npm run dev but I'm facing this  issue Module build failed: ReferenceError: Unknown plugin "transform-runtime" specified in "/opt/htdocs    /guru/.babelrc" at 0, attempted to resolve relative to "/opt/htdocs/guru" at /opt/htdocs/guru/trialproj/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17 at Array.map (<anonymous>) at Function.normalisePlugins (/opt/htdocs/guru/trialproj/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20) at OptionManager.mergeOptions (/opt/htdocs/guru/trialproj/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36) at OptionManager.init (/opt/htdocs/guru/trialproj/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12) at File.initOptions (/opt/htdocs/guru/trialproj/node_modules/babel-core/lib/transformation/file/index.js:212:65) at new File (/opt/htdocs/guru/trialproj/node_modules/babel-core/lib/transformation/file/index.js:135:24) at Pipeline.transform (/opt/htdocs/guru/trialproj/node_modules/babel-core/lib/transformation/pipeline.js:46:16) at transpile (/opt/htdocs/guru/trialproj/node_modules/babel-loader/lib/index.js:50:20) at Object.module.exports (/opt/htdocs/guru/trialproj/node_modules/babel-loader/lib/index.js:175:20) @ multi ./build/dev-client ./src/main.js can anyone help me out to solve this issue

Jakub Strebeyko staff answered 6 years ago


Hi there, guru

Let me make sure I got things right -- npm install <package-name> -save is a NPM command used to install node modules and here it has been used to install Node Package Manager itself. It could be used to update a the manager, but using a `-save` flag means it gets included in the package.json dependency listing, what is a rather uncommon practice. Is there something funky or specific you're trying to do?

I do not recognize the message in the error, but it surely has something to do with compilation by babel. And hey, the version on the page is outdated - check the newest, 4.4.0 version of MDB VUE on GitHub. The package there has a npm run start / yarn start script that will have you covered for development and presentation.

With Friendly Regards,
Kuba


guru93 free commented 6 years ago

Thanks, Kuba it worked for me

Jakub Strebeyko staff commented 6 years ago

So happy! :) For everyone wondering, we now provide MDB Vue newest package through the official site. Cheers!


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags