Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue2.0安装引入报错了 #819

Open
zqszqszqstvt opened this issue Mar 10, 2025 · 0 comments
Open

vue2.0安装引入报错了 #819

zqszqszqstvt opened this issue Mar 10, 2025 · 0 comments

Comments

@zqszqszqstvt
Copy link

在安装flv之前没有任何报错,安装之后运行起来进入相关页面就会报错
ReferenceError: _typeof is not defined
我看了版本是1.6.2,
我尝试了降低版本到1.5.0,会报更多错误,而且是控制台一直弹出错误
这是package.json

{ "name": "front", "version": "0.1.0", "private": true, "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint" }, "dependencies": { "@babel/runtime": "^7.26.9", "axios": "^1.6.8", "core-js": "^3.41.0", "echarts": "^5.5.0", "element-ui": "^2.15.14", "flv.js": "^1.6.0", "regenerator-runtime": "^0.14.1", "streamedian": "github:Streamedian/html5_rtsp_player", "video.js": "^8.21.0", "vue": "^2.6.14", "vue-echarts": "^6.7.2", "vue-router": "^3.6.5", "vue-template-compiler": "^2.6.14", "vue-virtual-scroller": "^1.1.2", "vuex": "^3.6.2" }, "devDependencies": { "@babel/core": "^7.12.16", "@babel/eslint-parser": "^7.12.16", "@babel/plugin-transform-runtime": "^7.26.9", "@david-j/vue-j-scroll": "^1.2.7", "@vue/cli-plugin-babel": "~5.0.0", "@vue/cli-plugin-eslint": "~5.0.0", "@vue/cli-service": "~5.0.0", "@vue/composition-api": "^1.7.2", "eslint": "^7.32.0", "eslint-plugin-vue": "^8.0.3", "less-loader": "^10.1.0" }, "eslintConfig": { "root": true, "env": { "node": true }, "extends": [ "plugin:vue/essential", "eslint:recommended" ], "parserOptions": { "parser": "@babel/eslint-parser" }, "rules": {} }, "browserslist": [ "> 1%", "last 2 versions", "not dead", "not ie 11", "chrome >=35", "ie>=8" ] }
和babel。config.js
module.exports = { presets: [ '@vue/cli-plugin-babel/preset' ] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant