Skip to content

TypeError: info is null #3214

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

Closed
ghost opened this issue Jul 10, 2019 · 7 comments
Closed

TypeError: info is null #3214

ghost opened this issue Jul 10, 2019 · 7 comments
Labels
awaiting submitter needs a reproduction, or clarification

Comments

@ghost
Copy link

ghost commented Jul 10, 2019

I posted this on the discord but no one seemed to answer me
I seem to be having an issue with {#await}
basically when the component gets destroyed or something, the destroying function gets called twice but on the second time it can't destroy it bcuz it already got destroyed
or at least that's what i figured out

I wasn't able to set it up on the repl for some reason :(
-> https://git.homework-manager.ml/homework-manager/hnrd-web

npm install
npm run dev

go to localhost:8080/#/, then #/whateveerr. check terminal

@Conduitry
Copy link
Member

I can't reproduce this. This is all I end up with in my terminal

image

@Conduitry Conduitry added the awaiting submitter needs a reproduction, or clarification label Jul 10, 2019
@ghost
Copy link
Author

ghost commented Jul 11, 2019

@Conduitry what where the steps you took? at first I thought it maybe was a firefox-only issue, but I can reproduce on chrome: Uncaught (in promise) TypeError: Cannot read property 'block' of null
try going into the page (#/), then navigate to anything that would drive to a notfound (or any other route really) (#/asonoasfnoj)

@Conduitry
Copy link
Member

https://git.homework-manager.ml/homework-manager/hnrd-web
cd hnrd-web
npm i
npm run dev

Then I opened http://localhost:8080/#/ in my browser, then I edited the URL to http://localhost:8080/#/blahblahblah. It appeared to correctly navigate to the '404 not found' page and there was nothing about TypeError: info is null in the console, on Firefox or Chrome.

@mrkishi
Copy link
Member

mrkishi commented Jul 11, 2019

You were hitting #3113 (you have Svelte at v3.6.5 in your pnpm-lock.yaml).

Upgrading to v3.6.6+ fixes it, and that's probably why @Conduitry couldn't reproduce it:

git clone https://git.homework-manager.ml/homework-manager/hnrd-web
cd hnrd-web

npm install
npm run dev

# http://localhost:8080/#/
#   chose route {regExp: /^\/$/, component: ƒ}
# http://localhost:8080/#/not-found-route
#   chose route {regExp: /.+/, component: ƒ, backCb: ƒ}

npm install -D [email protected]
npm run dev

# http://localhost:8080/#/
#   chose route {regExp: /^\/$/, component: ƒ}
# http://localhost:8080/#/not-found-route
#   chose route {regExp: /.+/, component: ƒ, backCb: ƒ}
#   Uncaught (in promise) TypeError: Cannot read property 'block' of null @ Index.svelte:10

@mrkishi mrkishi closed this as completed Jul 11, 2019
@ghost
Copy link
Author

ghost commented Jul 12, 2019

Oh. that's weird, I bootstrapped about 3 days ago. Maybe the webpack template is outdated?

@Conduitry
Copy link
Member

https://www.npmjs.com/package/svelte/v/3.6.6

3.6.6 was released 2 days ago.

@ghost
Copy link
Author

ghost commented Jul 12, 2019

Well, (p)npm upgrade worked. Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting submitter needs a reproduction, or clarification
Projects
None yet
Development

No branches or pull requests

2 participants