安装完插件vue3-video-play,运行时报错 Failed to resolve entry for package "vue3-video-play". The package may have incorrect main/module/exports specified in its package.json. 解决方法: 修改…
首先,您需要确认vue3-video-play这个包是否确实存在于您所使用的包管理器(如npm或yarn)的仓库中。您可以通过npm的官方网站搜索该包,或者使用命令行工具来检查。 在命令行中,您可以使用以下命令来搜索该包: bash npm search vue3-video-play 如果该命令没有返回结果,那么可能是包名错误或者该包不存在。此时,您...
解决办法,找到node_modules/vue3-video-play/package.json文件,打开 找到 并修改为index.mjs "module": "./dist/index.mjs",
[vite] Internal server error: Failed to resolve entry for package "vue3-video-play". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "vue3-video-play". The package may have incorrect main/module/exports specified in its p...
1、安装方式 (1)npm安装方式 npm i vue3-video-play --save 1. (2)yarn安装方式 yarn add vue3-video-play --save 1. 2、使用方式 (1)局部使用 // require style import 'vue3-video-play/dist/style.css' import { videoPlay } from 'vue-video-play' ...
yarn 安装: yarn add vue3-video-play --save 开始使用 全局使用 import{createApp}from"vue";importAppfrom"./App.vue";letapp=createApp(App);importvue3videoPlayfrom"vue3-video-play";// 引入组件import"vue3-video-play/dist/style.css";// 引入cssapp.use(vue3videoPlay);app.mount("#app");...
Toggle navigation Search or jump to... Sign in Sign up Reseting focus New issue Jump to bottom Open gansxopened this issueJan 19, 2024· 4 comments Open Failed to resolve entry for package "vue3-video-play". The package may have incorrect main/module/exports specified in its package.json...
1.安装版本 "vue3-video-play": "^1.3.1-beta.6", 2.在main.ts中进行组件注册 import { createApp } from 'vue'import Antd from'ant-design-vue'import App from'./App.vue'import router from'./router'import vue3videoPlay from'vue3-video-play'//引入组件import 'vue3-video-play/dist/style...
\github\vue3-video-play\node_modules\esbuild\esbuild.exe' npm manifest: { "name": "vue3-video-play", "version": "1.3.0-rc.2", "description": "hls.js player component for Vue3", "files": [ "dist", "lib" ], "main": "./dist/index.umd.js", "module": "./dist/index.es...