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

error when using with browserify #4

Open
sombriks opened this issue Feb 17, 2017 · 3 comments
Open

error when using with browserify #4

sombriks opened this issue Feb 17, 2017 · 3 comments

Comments

@sombriks
Copy link

i've installed av and opus.js:

"av": "^0.4.9",
"opus.js": "^0.1.1",

however when i try to play it in browser i get the following error:

GET http://192.168.0.105:9966/cordova.js
vue.runtime.common.js:6183 You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html
restapi.js:6 o serviço está em http://127.0.0.1:3000
libopus.js:1 Uncaught TypeError: Cannot read property 'match' of undefined
at Object.staticInit (libopus.js:1)
at Object. (libopus.js:1)
at Object.162._process (libopus.js:28)
at s (_prelude.js:1)
at _prelude.js:1
at Object.164.../build/libopus (decoder.js:2)
at s (_prelude.js:1)
at _prelude.js:1
at Object.163../src/decoder (index.js:1)
at s (_prelude.js:1)
staticInit @ libopus.js:1
(anonymous) @ libopus.js:1
162._process @ libopus.js:28
s @ _prelude.js:1
(anonymous) @ _prelude.js:1
164.../build/libopus @ decoder.js:2
s @ _prelude.js:1
(anonymous) @ _prelude.js:1
163../src/decoder @ index.js:1
s @ _prelude.js:1
(anonymous) @ _prelude.js:1
221.av @ opusplayer.js:3
s @ _prelude.js:1
(anonymous) @ _prelude.js:1
(anonymous) @ detalhemidia.vue?24694260:21
229.../../components/opusplayer @ detalhemidia.vue?24694260:47
s @ _prelude.js:1
(anonymous) @ _prelude.js:1
216.../features/config/doar.vue @ appcore.js:39
s @ _prelude.js:1
(anonymous) @ _prelude.js:1
234../components/appcore @ main.js:4
s @ _prelude.js:1
e @ _prelude.js:1
(anonymous) @ _prelude.js:1
backend.js:1 [vue-devtools] Ready. Detected Vue v2.1.10

any help/guidance is welcome.

@Kukunin
Copy link

Kukunin commented Oct 4, 2018

Have the same problem

@Kukunin
Copy link

Kukunin commented Oct 4, 2018

I use webpack for building. The problem that it includes process polyfill by default, and compiled JS thinks it's Node. Was able to get a successful build with the following configuration:

    externals: {
      fs: true
    },
    node: {
      process: false,
      Buffer: false,
      setImmediate: false
    },
    resolve: {
      aliasFields: ['browser']
    },

@sombriks
Copy link
Author

sombriks commented Oct 4, 2018

@Kukunin thank you! i'll check it and see if my build get back on track with this new info!

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

2 participants