LoginSignup

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

firebaseを導入したらエラーが発生して解決したけどなぜ解決したのか分からないです。

解決したいこと

vueでfirebaseをinitしたら
下のようなエラーが発生したのですが、海外のサイトでbabel.config.jsに

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

と入力するとみたいなこと書かれていて実際に治ったのですが、本当にこれで大丈夫なのですか?何も分からずにコピペしただけで治ったので実感わかないです。

https://github.com/vuejs/vue-cli/issues/3678

This dependency was not found:

* core-js/modules/es.function.name.js 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&

To install it, you can run: npm install --save core-js/modules/es.function.name.js
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\swapfile.sys'

また、

module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset',


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

このような書き方で成功したのですが、これでいいですか?

0

No Answers yet.

Your answer might help someone💌