当我运行parcel watch index.js时,我看到一个控制台错误(如下所示)。为什么它要尝试使用npm来加载我的组件? npm ERR!404 Not found : MyComponentnpm ERR!404 'MyComponent' is not in the npm registry.
npm ERR!at PromiseQueue.install [as pro
我使用以下方法创建了空白Vue3 + Vite项目我想知道如何从src/components安装组件,比如在npm i lodash.debounce或my-app/component我尝试在src和导出组件中创建index.js文件:
import Button from "@/components/Button/Button.vue
我想使用Sweetalert2,并在我拥有的每个VueJS组件中全局使用它。因此,在我的app.js中,我有以下内容: import { createApp, h } from 'vue'import { Head, Link } from '@inertiajs/inertia-vue3'
import { InertiaP