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.

Cannot read properties of null (reading 'prerelease')

See original GitHub issue

Affected Packages

standard-log

Problem

   yarn cs version
🦋  warn ===============================IMPORTANT!===============================
🦋  warn You are in prerelease mode
🦋  warn If you meant to do a normal release you should revert these changes and run `changeset pre exit`
🦋  warn You can then run `changeset version` again to do a normal release
🦋  warn ----------------------------------------------------------------------
🦋  error TypeError: Cannot read properties of null (reading 'prerelease')
🦋  error     at getPreVersion (D:\code\unional\standard-log\node_modules\@changesets\assemble-release-plan\dist\assemble-release-plan.cjs.dev.js:437:27)
🦋  error     at getPreInfo (D:\code\unional\standard-log\node_modules\@changesets\assemble-release-plan\dist\assemble-release-plan.cjs.dev.js:609:43)
🦋  error     at Object.assembleReleasePlan [as default] (D:\code\unional\standard-log\node_modules\@changesets\assemble-release-plan\dist\assemble-release-plan.cjs.dev.js:490:19)
🦋  error     at version (D:\code\unional\standard-log\node_modules\@changesets\cli\dist\cli.cjs.dev.js:599:60)
🦋  error     at async run$2 (D:\code\unional\standard-log\node_modules\@changesets\cli\dist\cli.cjs.dev.js:1337:11)

Proposed solution

Seems like this is a bug with prerelease.

https://github.com/unional/standard-log/runs/6841190529?check_suite_focus=true

Even after I run changeset pre exit, the issue persist. It goes away when I delete the pre.json file.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
frankxincommented, Jun 30, 2022

Hi~ Do we have any update ?We ran into the same issue

1reaction
vzt7commented, Jun 30, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'prerelease' of null #3 - GitHub
Seems we'll get this error when the input cannot been parsed by semver ... TypeError: Cannot read property 'prerelease' of null at repl:1:12 ......
Read more >
Uncaught TypeError: Cannot read properties of null (reading ...
I have my chrome extension listing errors on the extensions tab, but it's not completing the code that i'm using the try/catch.
Read more >
Cannot read properties of null" error occurs in certain cases ...
Scheduler - "TypeError: Cannot read properties of null" error occurs in certain cases based on the order of properties. Steps: Click the custom ......
Read more >
Cannot read properties of null (reading '0') - WordPress.org
Hi, Please can someone advise me how to solve this problem? Google Site Kit encountered an error Cannot read properties of null (reading…...
Read more >
TypeError: Cannot Read Properties of Null (Reading 'jsonType')
TypeError : Cannot Read Properties of Null (Reading 'jsonType') ... any suggestions? ... property off of a schema! ... It seems to be...
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