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.

ERROR TypeError: Cannot read property 'kind' of undefined

See original GitHub issue

Hi! I’m seeing this in my Nuxt typescript projects recently. When I google the error I get lots of results from other frameworks but none from Nuxt. I might just be doing something wrong, but I’ve got the same error in two separate codebases.

Any ideas how to debug this further?

Looking at issues with the same message, they have been fixed by upgrading to typescript 4.0 but we’re already on 4.0.3.

 ERROR  TypeError: Cannot read property 'kind' of undefined                                                                                                       10:55:42
TypeError: Cannot read property 'kind' of undefined
    at Object.isEntityNameExpression (/home/em/code/interact/node_modules/typescript/lib/typescript.js:17115:21)
    at serializeMaybeAliasAssignment (/home/em/code/interact/node_modules/typescript/lib/typescript.js:48356:42)
    at serializeSymbolWorker (/home/em/code/interact/node_modules/typescript/lib/typescript.js:47874:49)
    at serializeSymbol (/home/em/code/interact/node_modules/typescript/lib/typescript.js:47825:38)
    at /home/em/code/interact/node_modules/typescript/lib/typescript.js:47800:25
    at Map.forEach (<anonymous>)
    at visitSymbolTable (/home/em/code/interact/node_modules/typescript/lib/typescript.js:47799:33)
    at serializeAsNamespaceDeclaration (/home/em/code/interact/node_modules/typescript/lib/typescript.js:48162:25)
    at serializeAsFunctionNamespaceMerge (/home/em/code/interact/node_modules/typescript/lib/typescript.js:48123:25)
    at serializeMaybeAliasAssignment (/home/em/code/interact/node_modules/typescript/lib/typescript.js:48401:29)

dependencies from package.json:

"dependencies": {
    "@chenfengyuan/vue-qrcode": "1.0.2",
    "@nuxt/http": "0.6.0",
    "@nuxt/typescript-runtime": "^2.0.0",
    "@nuxtjs/axios": "5.12.2",
    "@nuxtjs/component-cache": "1.1.6",
    "@nuxtjs/dotenv": "1.4.1",
    "@nuxtjs/firebase": "4.2.2",
    "@nuxtjs/google-analytics": "2.4.0",
    "@nuxtjs/google-tag-manager": "2.3.2",
    "@nuxtjs/markdownit": "1.2.10",
    "@nuxtjs/sitemap": "2.4.0",
    "@nuxtjs/toast": "3.3.1",
    "@nuxtjs/vendor": "1.1.7",
    "@tailwindcss/ui": "0.6.2",
    "axios": "0.20.0",
    "clearingnummer": "0.10.0",
    "contentful": "7.14.7",
    "contentful-import": "7.9.12",
    "contentful-rich-text-vue-renderer": "1.1.5",
    "cookie-universal-nuxt": "2.1.4",
    "countup.js": "2.0.6",
    "date-fns": "2.16.1",
    "diff-dates": "1.0.12",
    "dotenv": "8.2.0",
    "emoji-regex": "9.0.0",
    "epic-spinners": "1.1.0",
    "firebase": "7.23.0",
    "grpc": "1.24.3",
    "is-personnummer": "1.1.3",
    "lodash": "4.17.20",
    "lodash.find": "4.6.0",
    "lodash.findkey": "4.6.0",
    "lodash.forown": "4.4.0",
    "loggly-jslogger": "2.2.2",
    "material-design-icons": "3.0.1",
    "nuxt": "2.14.7",
    "nuxt-facebook-pixel-module": "1.3.0",
    "nuxt-imagemin": "1.0.0",
    "nuxt-mq": "2.0.1",
    "nuxt-rollbar-module": "1.1.0",
    "pug": "2.0.4",
    "query-string": "6.13.5",
    "rollbar": "2.19.3",
    "se-orgnr-validator": "1.0.3",
    "spinkit": "2.0.1",
    "string-template-js": "1.0.3",
    "vue-affix": "0.5.2",
    "vue-analytics": "5.22.1",
    "vue-async-computed": "3.8.2",
    "vue-confetti": "2.2.1",
    "vue-content-loader": "0.2.3",
    "vue-countup-directive": "1.2.3",
    "vue-countup-v2": "4.0.0",
    "vue-flickity": "1.2.1",
    "vue-float-label": "1.6.1",
    "vue-focus": "2.1.0",
    "vue-images-loaded": "1.1.2",
    "vue-material-design-icons": "1.6.0",
    "vue-motion": "0.2.3",
    "vue-multiselect": "2.1.6",
    "vue-no-ssr": "1.1.1",
    "vue-promise-btn": "2.0.2",
    "vue-qrcode-reader": "2.3.13",
    "vue-resize-directive": "1.2.0",
    "vue-rollbar": "1.0.0",
    "vue-scroll": "2.1.13",
    "vue-scrollto": "2.17.1",
    "vue-select": "3.10.3",
    "vue-server-renderer": "2.6.11",
    "vue-sticky-directive": "0.0.10",
    "vue-template-compiler": "2.6.12",
    "vue-text-mask": "6.1.2",
    "vue-the-mask": "0.11.1",
    "vue-unicons": "2.0.3",
    "vuefire": "2.2.1",
    "vuelidate": "0.7.5",
    "xstate": "4.7.8"
  },
  "devDependencies": {
    "@babel/plugin-proposal-optional-chaining": "7.11.0",
    "@nuxt/types": "2.14.7",
    "@nuxt/typescript-build": "^2.0.3",
    "@nuxtjs/eslint-config-typescript": "^4.0.0",
    "@nuxtjs/storybook": "1.2.0",
    "@nuxtjs/tailwindcss": "3.1.0",
    "@types/vuelidate": "^0.7.13",
    "babel-core": "6.26.3",
    "babel-eslint": "10.1.0",
    "babel-preset-vue": "2.0.2",
    "cypress": "4.12.1",
    "eslint": "6.8.0",
    "eslint-config-prettier": "6.12.0",
    "eslint-config-standard": "14.1.1",
    "eslint-loader": "3.0.4",
    "eslint-plugin-html": "6.1.0",
    "eslint-plugin-import": "2.22.1",
    "eslint-plugin-node": "11.1.0",
    "eslint-plugin-prettier": "3.1.4",
    "eslint-plugin-promise": "4.2.1",
    "eslint-plugin-standard": "4.0.1",
    "node-sass": "4.14.1",
    "npx": "10.2.2",
    "prettier": "1.19.1",
    "pug-plain-loader": "1.0.0",
    "sass-loader": "8.0.2"
  }

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:7

github_iconTop GitHub Comments

6reactions
drakuliscommented, Oct 28, 2020

Unfortunately devs don’t follow semantic versioning and they introduces breaking changes in patch releases 😨.

@devs Yes, changing core library major version (typescrtipt 3.x -> 4.x) is a breaking change!

It just broke my production build few weeks ago because build pipeline suddenly installed new typescript.

@emdahlstrom quick solution for you will be to lock "@nuxt/typescript-build": "2.0.2" (no ^ version specifier!), where typescript 3.9 is used

3reactions
BlowAlonecommented, Jan 4, 2021

Have the same issue on "@nuxt/typescript-build": "^2.0.3", Is there any plans to fix this without putting version of typescript-build on 2.02?

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'kind' of undefined at ...
I ran into this problem and found a workaround in the case that upgrading Angular or other NPM packages isn't the ideal option...
Read more >
TypeError: Cannot read property 'kind' of undefined · Issue ...
I have the problem with typescript 3.9.3 and next 9.4.2 and ts-node 8.10.1. Switching to typescript 3.8.3 fixes the problem.
Read more >
Production Build Errors with smart-webcomponents-angular ...
Following is the error getting while doing prod build. ERROR in . ... TypeError: Cannot read property 'kind' of undefined
Read more >
Error with webpack: TypeError: Cannot read property &#38;#03
I found it was caused by tooptips.directive.ts line 18. If I remove “@OnChange”. building will work. Now we will wait quietly for a...
Read more >
Cannot read property 'kind' of undefined
During Strapi migration from v3 to v4, I am getting Cannot read property 'kind' of undefined error while running the server. Error is:...
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