question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught (in promise) TypeError: Cannot read property '__disableEmitter' of undefined

See original GitHub issue

Hi,

I’ve just installed the latest version of vue-i18n-next and I have a big problem because it does it work correctly with vue-router. Exactly the same bug like we can find here: https://github.com/intlify/vue-i18n-next/issues/253

Some people suggested to use NODE_ENV=production but I can’t do that based on fact I’m using different .env files for different environments. Also based on NODE_ENV I’m attaching some extra functionality. So this is not solution.

Version & libraries: I’m using these version of libraries:

"dependencies": {
    "@vueuse/core": "^4.6.2",
    "core-js": "^3.9.1",
    "register-service-worker": "^1.7.2",
    "vue": "^3.0.2",
    "vue-i18n": "^9.0.0",
    "vue-router": "^4.0.5",
    "vuex": "^4.0.0"
  },

The behaviour: When I’m trying to change page (using vue-router) I get those errors:

vue-i18n.esm-bundler.js?47e2:1672 Uncaught (in promise) TypeError: Cannot read property '__disableEmitter' of undefined
    at Proxy.beforeUnmount (vue-i18n.esm-bundler.js?47e2:1672)
    at callWithErrorHandling (runtime-core.esm-bundler.js?5c40:154)
    at callWithAsyncErrorHandling (runtime-core.esm-bundler.js?5c40:163)
    at Array.hook.__weh.hook.__weh (runtime-core.esm-bundler.js?5c40:1957)
    at invokeArrayFns (shared.esm-bundler.js?9ff4:470)
    at unmountComponent (runtime-core.esm-bundler.js?5c40:4819)
    at unmount (runtime-core.esm-bundler.js?5c40:4731)
    at Object.remove (runtime-core.esm-bundler.js?5c40:5125)
    at unmount (runtime-core.esm-bundler.js?5c40:4755)
    at unmountChildren (runtime-core.esm-bundler.js?5c40:4859)
Screenshot 2021-03-28 at 19 36 04

Someone has still a similar problem?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ota-meshicommented, Mar 31, 2021

It works fine with the newly released vue v3.0.10.

2reactions
jiangjunfeng98commented, Mar 29, 2021

vue 3.0.7 is work

"vue": "3.0.7",
"vue-i18n": "^9.0.0"
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property '__disableEmitter' of undefined #253
When I change the route, I got this error: Uncaught (in promise) TypeError: Cannot read property '__disableEmitter' of undefined at Proxy.
Read more >
Uncaught (in promise) TypeError: Cannot read properties of ...
I am new to vue js but when i try to display image by id on page there is an error Uncaught (in...
Read more >
Uncaught (in promise) TypeError: Cannot read properties of ...
I am using PnP JS in SPFx to get page content. I wanted to get content type id of the page and check...
Read more >
Vue: Uncaught (In Promise) Typeerror: Cannot Read Property ...
Uncaught TypeError : Cannot read property of undefined JavaScript TypeError is thrown when an operand or argument passed to a function is incompatible...
Read more >
How to fix Vue I18n Uncaught TypeError - Our Code World
How to fix Vue I18n Uncaught TypeError: Cannot read property 'config' of undefined. I've been working on a Vue.js app that needs to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found