Error: Couldn't find preset "@babel/preset-env" relative to directory "E:\\pleroma-fe\\node_modules\\v-click-outside"
Hi, I'm trying to run the project locally on my Windows machine. Unfortunately, v-click-outside
is trying to resolve preset "@babel/preset-env" (Babel v7) unsupported by the project.
Console output when trying to npm run dev
ERROR in ./node_modules/v-click-outside/dist/v-click-outside.min.umd.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Couldn't find preset "@babel/preset-env" relative to directory "E:\\pleroma-fe\\node_modules\\v-click-outside"
at E:\pleroma-fe\node_modules\babel-core\lib\transformation\file\options\option-manager.js:293:19
at Array.map (<anonymous>)
at OptionManager.resolvePresets (E:\pleroma-fe\node_modules\babel-core\lib\transformation\file\options\option-manager.js:275:20)
at OptionManager.mergePresets (E:\pleroma-fe\node_modules\babel-core\lib\transformation\file\options\option-manager.js:264:10)
at OptionManager.mergeOptions (E:\pleroma-fe\node_modules\babel-core\lib\transformation\file\options\option-manager.js:249:14)
at OptionManager.init (E:\pleroma-fe\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
at File.initOptions (E:\pleroma-fe\node_modules\babel-core\lib\transformation\file\index.js:212:65)
at new File (E:\pleroma-fe\node_modules\babel-core\lib\transformation\file\index.js:135:24)
at Pipeline.transform (E:\pleroma-fe\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
at transpile (E:\pleroma-fe\node_modules\babel-loader\lib\index.js:50:20)
at Object.module.exports (E:\pleroma-fe\node_modules\babel-loader\lib\index.js:173:20)
@ ./src/main.js 99:21-47
@ multi ./build/dev-client ./src/main.js
ERROR in ./node_modules/vue-resize/dist/vue-resize.esm.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Couldn't find preset "stage-0" relative to directory "E:\\pleroma-fe\\node_modules\\vue-resize"
at E:\pleroma-fe\node_modules\babel-core\lib\transformation\file\options\option-manager.js:293:19
at Array.map (<anonymous>)
at OptionManager.resolvePresets (E:\pleroma-fe\node_modules\babel-core\lib\transformation\file\options\option-manager.js:275:20)
at OptionManager.mergePresets (E:\pleroma-fe\node_modules\babel-core\lib\transformation\file\options\option-manager.js:264:10)
at OptionManager.mergeOptions (E:\pleroma-fe\node_modules\babel-core\lib\transformation\file\options\option-manager.js:249:14)
at OptionManager.init (E:\pleroma-fe\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
at File.initOptions (E:\pleroma-fe\node_modules\babel-core\lib\transformation\file\index.js:212:65)
at new File (E:\pleroma-fe\node_modules\babel-core\lib\transformation\file\index.js:135:24)
at Pipeline.transform (E:\pleroma-fe\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
at transpile (E:\pleroma-fe\node_modules\babel-loader\lib\index.js:50:20)
at Object.module.exports (E:\pleroma-fe\node_modules\babel-loader\lib\index.js:173:20)
@ ./node_modules/v-tooltip/dist/v-tooltip.esm.js 56:17-38
@ ./src/main.js
@ multi ./build/dev-client ./src/main.js
ERROR in Error: webpack-internal:///./node_modules/core-js/library/modules/es6.object.d efine-property.js:5
$export($export.S + $export.F * !__webpack_require__(/*! ./_descriptors */ "./ node_modules/core-js/library/modules/_descriptors.js"), 'Object', { defineProp erty: __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/ modules/_object-dp.js").f });
^
TypeError: $export is not a function
- es6.object.define-property.js:5 eval
[.]/[core-js]/library/modules/es6.object.define-property.js:5:1
- index.html:1106 Object../node_modules/core-js/library/modules/es6.object.def ine-property.js
E:/pleroma-fe/index.html:1106:1
- index.html:21 __webpack_require__
E:/pleroma-fe/index.html:21:30
- define-property.js:3 eval
[.]/[core-js]/library/fn/object/define-property.js:3:1
- index.html:278 Object../node_modules/core-js/library/fn/object/define-proper ty.js
E:/pleroma-fe/index.html:278:1
- index.html:21 __webpack_require__
E:/pleroma-fe/index.html:21:30
- define-property.js:3 eval
[.]/[babel-runtime]/core-js/object/define-property.js:3:31
- index.html:122 Object../node_modules/babel-runtime/core-js/object/define-pro perty.js
E:/pleroma-fe/index.html:122:1
- index.html:21 __webpack_require__
E:/pleroma-fe/index.html:21:30
- _object-dp.js:3 eval
[.]/[core-js]/library/modules/_object-dp.js:3:23