MatheusrdSantos / vue-quick-chat

A simple chat component created with Vue.js
MIT License
128 stars 45 forks source link

Error while building in a Vue project #38

Closed yusanshi closed 4 years ago

yusanshi commented 4 years ago

My package.json is as follows.

{
  "dependencies": {
    "vue-quick-chat": "^1.2.0",
  },
}

With npm install, I have 1.2.3 installed. However, when running npm run build, error occurred.'

Starting type checking service...
Using 1 worker with 2048MB memory limit
 ERROR  Failed to compile with 2 errors6:26:07 AM

These dependencies were not found:

* vue-quick-chat in ./node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--14-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Interview.vue?vue&type=script&lang=ts&
 ERROR  Build failed with errors.
* vue-quick-chat/dist/vue-quick-chat.css in ./node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--14-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Interview.vue?vue&type=script&lang=ts&

To install them, you can run: npm install --save vue-quick-chat vue-quick-chat/dist/vue-quick-chat.css
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! online-interview@0.1.0 build: `vue-cli-service build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the online-interview@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2020-07-29T06_26_07_880Z-debug.log
##[error]Process completed with exit code 1.

I modify my package.json so that the version of vue-quick-chat is locked to 1.2.0, then it can build successfully.

{
  "dependencies": {
    "vue-quick-chat": "1.2.0",
  },
}
smileypop commented 4 years ago

I have the same problem as mentioned above. Is this related to the core-js version? I am getting the following warning. npm WARN deprecated core-js@2.6.11: 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.

MatheusrdSantos commented 4 years ago

Hi, @yusanshi! I ran the wrong command to publish the lib. Now it's working, just update to 1.2.4. Sorry for the inconvenience, my mistake.

Thanks for your help.

MatheusrdSantos commented 4 years ago

@smileypop, update to 1.2.4, I guess your problem will be solved.

yusanshi commented 4 years ago

Thanks!

smileypop commented 4 years ago

@MatheusrdSantos thank you for the quick fix. The install is working now, but I still receive the warning related to core-js. It might be worth updating inside the package, but that is an unrelated issue to this one.