3.10.0
System:
OS: Windows 10
CPU: (8) x64 Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
Binaries:
Node: 10.16.3 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 44.18362.267.0
npmPackages:
@vue/babel-helper-vue-jsx-merge-props: 1.0.0
@vue/babel-plugin-transform-vue-jsx: 1.0.0
@vue/babel-preset-app: 3.10.0
@vue/babel-preset-jsx: 1.1.0
@vue/babel-sugar-functional-vue: 1.0.0
@vue/babel-sugar-inject-h: 1.0.0
@vue/babel-sugar-v-model: 1.0.0
@vue/babel-sugar-v-on: 1.1.0
@vue/cli-overlay: 3.10.0
@vue/cli-plugin-babel: ^3.10.0 => 3.10.0
@vue/cli-plugin-eslint: ^3.10.0 => 3.10.0
@vue/cli-service: ^3.10.0 => 3.10.0
@vue/cli-shared-utils: 3.10.0
@vue/component-compiler-utils: 2.6.0 (3.0.0)
@vue/preload-webpack-plugin: 1.1.1
@vue/web-component-wrapper: 1.2.0
eslint-plugin-vue: ^5.0.0 => 5.2.3 (4.7.1)
vue: ^2.6.10 => 2.6.10
vue-eslint-parser: 2.0.3 (5.0.0)
vue-hot-reload-api: 2.3.3
vue-loader: 15.7.1
vue-style-loader: 4.1.2
vue-template-compiler: ^2.6.10 => 2.6.10
vue-template-es2015-compiler: 1.9.1
npmGlobalPackages:
@vue/cli: Not Found
npm install -g @vue/cli
npm create [appname]
npm run serve
dev server should run
PS C:\Users\Sepp\My Documentsdev\Vue\testapp> npm run serve
[email protected] serve C:\Users\Sepp\My Documentsdev\Vue\testapp
vue-cli-service serve
INFO Starting development server...
98% after emitting CopyPlugin
ERROR Failed to compile with 7 errors 10:57:05 PM
These dependencies were not found:
To install them, you can run: npm install --save C:\Users\Sepp\Documentsdev\Vue\testappnode_modules\webpack-dev-server\client\index.js?http://192.168.1.215:8080/sockjs-node C:\Users\Sepp\Documentsdev\Vue\testappnode_modules\webpack-dev-server\client\index.js?http://localhost C:\Users\Sepp\Documentsdev\Vue\testappnode_modules\webpack\hotdev-server.js
This relative module was not found:
just installed vue-cli, and a keep getting this issue when trying to run a dev server, attempted npm install --save as it suggest, tried deleted node modules still get this issue
Please provide a repoistory with a project that you generated like that.
Also get the same issue and while trying to do npm install --save what it suggests I get this error
npm ERR! code ENOLOCAL
npm ERR! Could not install from "core-js\modules\es6.number.constructor" 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\Ebuka\AppData\Roaming\npm-cache_logs\2019-08-21T09_26_33_728Z-debug.log
Any suggestion on how to go about this thanks.
Hello!
This issue has gone quiet. Spooky quiet. 👻
We get a lot of issues, so we currently close issues requiring feedback after 20 days of inactivity. It’s been at least 10 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. (A maintainer can also add the label not stale to keep this issue open.)
Thanks for being a part of the Vue community! 💪💚️
I am getting the same error too when use @vue/cli-service-global.
PS C:\vue-prop-emit> npm run vue-serve
> [email protected] vue-serve D:\Programming\JavaScript\vue-prop-emit
> vue serve
INFO Starting development server...
98% after emitting
ERROR Failed to compile with 1 errors 4:07:07
This dependency was not found:
* core-js/modules/es6.number.constructor in ./node_modules/babel-loader/lib??ref--12-0!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_m
odules/vue-loader/lib??vue-loader-options!./Child.vue?vue&type=script&lang=js&
To install it, you can run: npm install --save core-js/modules/es6.number.constructor
I tried to install core-js/modules/es6.number.constructor but got the same error as https://github.com/vuejs/vue-cli/issues/4472#issuecomment-523378449
I installed core-js, but the error was not resolved.
package.json
```json:package.json
"scripts": {
"vue-serve": "vue serve"
},
"devDependencies": {
"@vue/cli": "^3.11.0",
"@vue/cli-service-global": "^3.11.0"
}
other information
OS: WIndows 10 Pro
node -v
v12.5.0
npm --version
6.8.0
```
Repository where the error occurs: https://github.com/igayamaguchi/vue-prop-emit/tree/ed9e94c7d9fec83d13c974ab4fd6122bdfe705d3
If I rewrite the Number in this line to String, no error.
https://github.com/igayamaguchi/vue-prop-emit/blob/f30f8609b7d5cfbd4580d922d540d7eb82a52ce5/Child.vue#L10
I add information about the above.
Maybe vue-cli is not an issue and may be an IntelliJ issue.
I hitted the above command from IntelliJ IDEA Ultimate.
No error occurred when hitting global vue serve command from normal Powershell.
from|command|error
:--|:--|:--
Powershell IntelliJ IDEA's Terminal|npm run vue-serve|error
Powershell IntelliJ IDEA's Terminal|vue serve(global)|error
Powershell|npm run vue-serve|error
Powershell|vue serve|no error
> vue --version
3.11.0
> vue serve --version
3.11.0
@igayamaguchi Try install core-js@2?
@sodatea I tried install core-js@2, No error!
https://github.com/igayamaguchi/vue-prop-emit/commit/79c4fd765703ca4307d41d6c19d63af76940ac6f
Thanks so much :)
Does vue serve depend on corej-js@2?
@vue/cli-plugin-babel@3 depends on core-js@2.
Typically when you use the global vue serve command it will resolve to the correct installation path, I've no idea why running it from IntelliJ IDEA's Terminal causes error. Anyway, a local installation of core-js@2 could be the last resort
I understand.
Thank you for more information.
I solved the issue by installing core-js@2 as well downgrading the version of my npm and node. It seemed that the latest versions were not compatible.
Hello!
This issue has gone quiet. Spooky quiet. 👻
We get a lot of issues, so we currently close issues requiring feedback after 20 days of inactivity. It’s been at least 10 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. (A maintainer can also add the label not stale to keep this issue open.)
Thanks for being a part of the Vue community! 💪💚️
@igayamaguchi Try install
core-js@2?
Thank you very much! It's alive!!!
npm i core-js@3 fix that ,
core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
Still have the same issue, on a Mac using Docker Compose and vue-cli-service serve. Running on Mac only works.
Errors in Docker :
frontend_1 | * firebase in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Login.vue?vue&type=script&lang=js&
frontend_1 | * firebase/analytics in ./src/firebaseConfig.js
frontend_1 | * firebase/app in ./src/firebaseConfig.js, ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Login.vue?vue&type=script&lang=js&
frontend_1 | * firebase/auth in ./src/firebaseConfig.js, ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Login.vue?vue&type=script&lang=js&
frontend_1 | * firebase/firestore in ./src/firebaseConfig.js
frontend_1 | * firebase/performance in ./src/firebaseConfig.js
frontend_1 | * sweetalert2 in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Login.vue?vue&type=script&lang=js&
frontend_1 |
frontend_1 | To install them, you can run: npm install --save firebase firebase/analytics firebase/app firebase/auth firebase/firestore firebase/performance sweetalert2
Any help would be appreciated.
@konato currently i would like you to remove node_modules folder + package-lock.json then reinstall your deps by using yarn instead of npm ,as your error above says you didn't installed firebase deps whenever i assume you have installed them already so the npm didn't installed these deps correctly for you , so i recommend you to use yarn or pnpm.
for me i use pnpm almost of my cases and yarn for desktop apps or when i want to get exact the node_modules on remote hosting where i can't use yarn and i can't trust npm management ,else that i use pnpm for my most cases to handle my storage and save space, i wish my answer not out of your needs and help you somehow.
Most helpful comment
@igayamaguchi Try install
core-js@2?