Skip to content

Instantly share code, notes, and snippets.

@paulduran
Created October 9, 2019 21:07
Show Gist options
  • Save paulduran/628272f12a5448ef80722556d4c5ec50 to your computer and use it in GitHub Desktop.
Save paulduran/628272f12a5448ef80722556d4c5ec50 to your computer and use it in GitHub Desktop.
ERROR Failed to compile with 1 errors 8:04:35 AM
error in ./main.js
Module build failed: Error: The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.
at validatePlugins (C:\projects\ui-components\node_modules\@babel\parser\lib\index.js:6109:13)
at getParser (C:\projects\ui-components\node_modules\@babel\parser\lib\index.js:11426:5)
at parse (C:\projects\ui-components\node_modules\@babel\parser\lib\index.js:11409:12)
at parser (C:\projects\ui-components\node_modules\@babel\core\lib\transformation\normalize-file.js:168:34)
at normalizeFile (C:\projects\ui-components\node_modules\@babel\core\lib\transformation\normalize-file.js:102:11)
at runSync (C:\projects\ui-components\node_modules\@babel\core\lib\transformation\index.js:44:43)
at runAsync (C:\projects\ui-components\node_modules\@babel\core\lib\transformation\index.js:35:14)
at C:\projects\ui-components\node_modules\@babel\core\lib\transform.js:34:34
at processTicksAndRejections (internal/process/task_queues.js:75:11)
@ C:/Users/pauld/AppData/Local/Yarn/Data/global/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js 12:0-24 14:0-22
(node:21152) UnhandledPromiseRejectionWarning: Build failed with errors.
(node:21152) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:21152) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
import KComponents from './plugin';
import Vue from 'vue';
Vue.use(KComponents);
import DemoButton from './components/DemoButton.vue';
export default {
install(Vue : any, options : any) {
Vue.component('DemoButton', DemoButton);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment