Skip to content
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

Unhandled Runtime Error postcss/postcss from 0.3.1 to 8.3.6 #314

Closed
HonkingGoose opened this issue Aug 8, 2021 · 9 comments · Fixed by #534
Closed

Unhandled Runtime Error postcss/postcss from 0.3.1 to 8.3.6 #314

HonkingGoose opened this issue Aug 8, 2021 · 9 comments · Fixed by #534
Labels
bug Bug fix of existing functionality

Comments

@HonkingGoose
Copy link
Collaborator

Describe the bug

When comparing postcss/postcss releases from 0.3.1 to 8.3.6, I get a error:

Unhandled Runtime Error

TypeError: mdastNode.children is undefined

Give the steps to reproduce

  1. Go to main branch of our code, run yarn
  2. yarn start to get the local development server running
  3. Go to http://localhost:3000/comparator?repo=postcss%2Fpostcss&from=0.3.1&to=8.3.6
  4. See error

What browsers are you seeing the problem on?

Firefox

Have you thought of a possible solution?

No

If you have thought of a solution, please tell us about it!

No response

Do you want to help fix the bug?

No

Is there anything else we need to know?

No response

@HonkingGoose HonkingGoose added bug Bug fix of existing functionality status:requirements labels Aug 8, 2021
@Belco90
Copy link
Member

Belco90 commented Aug 9, 2021

Interesting error. I think I have an idea why it happens and might be even fixed in #302. Let's see what happens with this issue after merging that PR!

@HonkingGoose
Copy link
Collaborator Author

I'll try to keep an eye out if this changes things.

Might also be a good "test-case" for a unit/integration test, to verify that this bug is fixed, and remains fixed? If we ever get around to doing those things. 😄

@HonkingGoose
Copy link
Collaborator Author

This is still a problem on current main even after merging #302 which:

The whole unified/rehype/remark ecosystem is upgraded and working fine with Next.js v11.1 now.

@Belco90
Copy link
Member

Belco90 commented Aug 15, 2021

This needs further investigation then.

@sentry-io
Copy link

sentry-io bot commented Nov 7, 2021

Sentry issue: OCTOCLAIRVOYANT-WEBAPP-4

@Belco90
Copy link
Member

Belco90 commented Nov 8, 2021

This is solved now! After the types improvements I did on #533, where I had to add some extra checks to make sure there weren't type errors, now this comparison doesn't trigger an error anymore.

You can see that here: https://octoclairvoyant.vercel.app/comparator?repo=postcss%2Fpostcss&from=0.3.1&to=8.3.6

Still, the comparison it's a bit weird, but I think that's a different thing. Should we close this one then?

@HonkingGoose
Copy link
Collaborator Author

This is solved now! After the types improvements I did on #533, where I had to add some extra checks to make sure there weren't type errors, now this comparison doesn't trigger an error anymore.

Yay! 🥳

Still, the comparison it's a bit weird, but I think that's a different thing. Should we close this one then?

What do you mean with "a bit weird"?

@Belco90
Copy link
Member

Belco90 commented Nov 8, 2021

There are a few of these groups in the middle of the result:

CleanShot 2021-11-08 at 11 08 30@2x

We can't do nothing about those from now, it seems those releases didn't follow proper sem ver.

@HonkingGoose
Copy link
Collaborator Author

The problem with the groups deserves its own issue, if we want to fix it.

I'll close this issue as we have fixed the unhandled runtime error that this bug report is about. 😄

@HonkingGoose HonkingGoose linked a pull request Nov 8, 2021 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fix of existing functionality
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants