creativetimofficial / vue-light-bootstrap-dashboard

Vue Light Bootstrap Dashboard - FREE BOOTSTRAP 4 VUEJS ADMIN TEMPLATE
https://www.creative-tim.com/product/vue-light-bootstrap-dashboard
MIT License
773 stars 670 forks source link

This dependency was not found: #38

Closed estellederrien closed 1 year ago

estellederrien commented 4 years ago

This dependency was not found:

To install it, you can run: npm install --save core-js/modules/es6.regexp.to-string

estellederrien commented 4 years ago

C:\UwAmp\www\vue-light-bootstrap-dashboard-master>npm install --save core-js/modules/es6.regexp.to-string npm ERR! code ENOLOCAL npm ERR! Could not install from "core-js\modules\es6.regexp.to-string" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\nicolas\AppData\Roaming\npm-cache_logs\2019-11-01T08_13_32_419Z-debug.log

donohutcheon commented 4 years ago

I get this too - on Linux Ubuntu 18.04; Node v10.16.3

donohutcheon commented 4 years ago

I added core-js to package.json and it worked.

diff --git a/package.json b/package.json
index 2131df2..e83706e 100644
--- a/package.json
+++ b/package.json
@@ -14,6 +14,7 @@
     "deploy": "npm run build && cd docs && npm install && npm run build && cd .. && gh-pages -d dist"
   },
   "dependencies": {
+    "core-js": "^2.6.11",
     "bootstrap": "^4.3.1",

The latest 3.4.8 core-js version doesn't work though, only 2.x seems to work - which is deprecated.

tangyk commented 4 years ago

I solved this problem by following steps. 1, run [ npm install core-js] for installing core-js of version 3. 2, change .babelrc file located at the root folder from { "presets": [ [ "@vue/app", { "polyfills": ["es7.object.entries", "es6.promise"] } ] ] }

to

{ "presets": [["@vue/app", { "useBuiltIns": "entry" }]] }

It seems works.

jhonnattan123 commented 3 years ago

I solved this problem by following steps. 1, run [ npm install core-js] for installing core-js of version 3. 2, change .babelrc file located at the root folder from { "presets": [ [ "@vue/app", { "polyfills": ["es7.object.entries", "es6.promise"] } ] ] }

to

{ "presets": [["@vue/app", { "useBuiltIns": "entry" }]] }

It seems works.

work for me image