Skip to content

Uncaught TypeError: Cannot read properties... (fresh install) #75

@gbplabs

Description

@gbplabs

Hi!
Fresh install,
On a Mac with Node.
The same thing happens to me with Node 22 and 20 and I guess with others too.

I installed with: npx nuxi init -t github:nuxt-ui-pro/dashboard
Then... pnpm run dev

I log in to localhost:3000
For example, I go to the "inbox" page and make an important change in the js code, for example on line 28 we have

const filteredMails = computed(() => {
    if (selectedTab.value === 1) {
        return mails.value.filter(mail => !!mail.unread)
    }

I change the ===1 to ===100

then... cmd + s to save and....

If I look at the browser console I find the blessed: Uncaught (in promise) TypeError: Cannot read properties of null (reading 'parentNode')

Image

I made this reproduction of the error because I have been suffering from it, in a complex project in which I'm working, and I was actually suspecting that it might have been some external module of the many that I installed, so I resorted to a fresh installation and found out that the same thing is happening.

I would appreciate any comment, since this takes up a lot of time in my workflow, since it reloads the entire page with each cmd + s.

Greetings from Argentina.

Pablo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions