GithubHelp home page GithubHelp logo

Comments (9)

HuangFeiPeng avatar HuangFeiPeng commented on July 3, 2024 1

我也遇到了一模一样的问题,我的错误比较低级,起因是在粘贴vue项目的时候,少写了一个.browserslistrc文件,然后添加了一下解决了。

from benz-amr-recorder.

BenzLeung avatar BenzLeung commented on July 3, 2024

用的什么浏览器?你是如何调用 initWithUrl 的?可以贴一些代码上来

from benz-amr-recorder.

lidazhaung-1998 avatar lidazhaung-1998 commented on July 3, 2024

chrome 浏览器
$('.play').click(function () {
var amr = new BenzAMRRecorder()
amr.initWithUrl('/api/ldz/chudianh5/11.amr').then(function () {
amr.play();
})
})

from benz-amr-recorder.

BenzLeung avatar BenzLeung commented on July 3, 2024

稍微谷歌了一下,直觉上像是因为 webpack 4 或者 babel 7……
确认一下,你们的项目是用的 webpack 4 或者 babel 7 还是其他? @chenmengyingfe @lidazhaung-1998
也可以直接把 package.json 的代码贴上来。

from benz-amr-recorder.

lidazhaung-1998 avatar lidazhaung-1998 commented on July 3, 2024

对,webpack 4,babel 7。 随后在html中直接使用script标签引入文件没有出现该问题。

from benz-amr-recorder.

gjbbd avatar gjbbd commented on July 3, 2024

Uncaught ReferenceError: _typeof is not defined

from benz-amr-recorder.

alexx617 avatar alexx617 commented on July 3, 2024

复现了,请问有解决方案吗?
{
"version": "0.0.1",
"dependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
"@rollup/plugin-image": "^2.1.1",
"core-js": "^3.6.5",
"dayjs": "^1.11.0",
"vue": "^3.2.2"
},
"devDependencies": {
"@rollup/plugin-alias": "^3.1.9",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-json": "^4.1.0",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-plugin-router": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/compiler-sfc": "^3.2.2",
"@vue/eslint-config-prettier": "^6.0.0",
"autoprefixer": "^10.4.2",
"babel-eslint": "^10.1.0",
"cross-env": "^7.0.3",
"eslint": "^6.7.2",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^7.0.0",
"postcss": "^8.4.6",
"postcss-pxtorem": "^6.0.0",
"prettier": "^2.6.1",
"rollup-plugin-livereload": "^2.0.5",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-vue": "^6.0.0",
"sass": "^1.26.5",
"sass-loader": "^8.0.2"
},
"keywords": [],
"author": "",
"license": "ISC",
}

from benz-amr-recorder.

BenzLeung avatar BenzLeung commented on July 3, 2024

Sorry...我暂时没空维护了,谁解决了欢迎提交 pull request

from benz-amr-recorder.

LWD8 avatar LWD8 commented on July 3, 2024

我也遇到了一模一样的问题,我的错误比较低级,起因是在粘贴vue项目的时候,少写了一个.browserslistrc文件,然后添加了一下解决了。

确实可以了,少了.browserslistrc文件

from benz-amr-recorder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.