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.

[SSR] Error transforming app.vue: Cannot read properties of undefined (reading 'uid')

See original GitHub issue

I’ve been getting strange warnings tonight on fresh Nuxt3 projects, both on OSX and Linux. The warnings look like the following:

 WARN  [SSR] Error transforming .../testing/app.vue: Cannot read properties of undefined (reading 'uid')                                                      

  at Object.statSync (node_modules/graceful-fs/polyfills.js:313:17)
  at isDirectory (node_modules/resolve/lib/sync.js:22:23)
  at loadNodeModulesSync (node_modules/resolve/lib/sync.js:191:17)
  at Function.resolveSync [as sync] (node_modules/resolve/lib/sync.js:98:17)
  at resolveFrom$3 (node_modules/vite/dist/node/chunks/dep-76613303.js:3911:29)
  at resolvePackageData (node_modules/vite/dist/node/chunks/dep-76613303.js:30046:19)
  at node_modules/vite/dist/node/chunks/dep-76613303.js:30426:15
  at Array.find (<anonymous>)
  at tryNodeResolve (node_modules/vite/dist/node/chunks/dep-76613303.js:30425:44)
  at Context.resolveId (node_modules/vite/dist/node/chunks/dep-76613303.js:30257:28)

Running npx nuxi info gives the following:

- Operating System: `Darwin`
- Node Version:     `v17.0.1`
- Nuxt Version:     `3.0.0-27338323.1e98259`
- Package Manager:  `yarn@1.22.17`
- Bundler:          `Vite`
- User Config:      `-`
- Runtime Modules:  `-`
- Build Modules:    `-`

I get the same error on Linux with Node v14.

Any ideas ?!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:28 (6 by maintainers)

github_iconTop GitHub Comments

19reactions
danielroecommented, Jan 4, 2022

For now, you can work around this by adding a resolution for resolve in your package.json:

{
  "private": true,
  "scripts": {
    "dev": "nuxi dev",
    "build": "nuxi build",
    "start": "node .output/server/index.mjs"
  },
  "devDependencies": {
    "nuxt3": "latest"
  },
  "resolutions": {
    "resolve": "1.20.0"
  }
}
6reactions
peteromanocommented, Jan 5, 2022

@lewebsimple Yea, not without a silly remark from isaacs though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught (in promise) TypeError: Cannot read property 'uid' of ...
I am using laravel 5.4 and Vue.js ...
Read more >
typeerror: cannot set properties of undefined created() vue
I get this error when testing TypeError: Cannot read properties of undefined (reading 'state') ...mapState("member", { isAuthenticated: (state: MemberState) ...
Read more >
Creating Server-side Rendered Vue.js Apps Using Nuxt.js
Most offer a way of dynamically changing page content without having to send a request to the server each time. However, there is...
Read more >
ERROR TypeError: Cannot read property title of undefined
HEY, SET YOUR LIKE THERE !!! ------------------- ----- LIKE --- https://codedocu.com/Software/Angular/Angular- Error /Solv...
Read more >
[Vue 3 & Vite 2] Uncaught (in promise) TypeError: Cannot read ...
[Vue warn]: Error in mounted hook: "TypeError: Cannot read properties of undefined (reading 'getAccessTokenSilently')"
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