extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Notion] Add page to database fails to load

Open JuanseHevia opened this issue 1 year ago • 9 comments
trafficstars

Extension

https://www.raycast.com/notion/notion

Raycast Version

v 1.84.3

macOS Version

Sequoia 15.0.1

Description

Error:

TypeError: Cannot read properties of undefined (reading 'options')

rm:PagePropertyField.tsx:24:2

---
21:   users: User[]

### Steps To Reproduce

1. Open the extension
2. Open the "Create new page in database"

### Current Behaviour

TypeError: Cannot read properties of undefined (reading 'options')

rm:PagePropertyField.tsx:24:2

---
21:   users: User[];
22: }): JSX.Element;
23: export function PagePropertyField({
24:   type,
25:   databaseProperty,
26:   itemProps,
27:   relationPages,
---

    at ray-form
te:index.js:20:19513
sm:create-database-page.js:74:14392

### Expected Behaviour

I should see an input form for adding pages to any of my databases

JuanseHevia avatar Oct 22 '24 03:10 JuanseHevia

Thank you for opening this issue!

🔔 @HenriChabrand @mathieudutour @metakirby5 @thomaslombart @erics118 @bkeys818 @AlexIsMaking @Yakitrak @tleo19 @dariuszpaluch @zsidnam you might want to have a look.

💡 Author and Contributors commands

The author and contributors of notion/notion can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

raycastbot avatar Oct 22 '24 03:10 raycastbot

Okay, this is due to our latest update. To confirm, can you reproduce this error every time you open the "Create new page in database" command?

bkeys818 avatar Oct 22 '24 11:10 bkeys818

Yes, the same happens when I run that command.

On Tue, Oct 22, 2024 at 6:11 AM Ben Keys @.***> wrote:

Okay, this is due to our latest update. To confirm, can you reproduce this error every time you open the "Create new page in database" command?

— Reply to this email directly, view it on GitHub https://github.com/raycast/extensions/issues/15025#issuecomment-2428991515, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCTSJK53JKYMPNEJCQPN3DTZ4YXF5AVCNFSM6AAAAABQLPCZFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRYHE4TCNJRGU . You are receiving this because you authored the thread.Message ID: @.***>

JuanseHevia avatar Oct 22 '24 14:10 JuanseHevia

Could you directly email me the following folder? You can find my email on my GitHub profile page.

/Users/${user_name}/Library/Application Support/com.raycast.macos/extensions/5f2e08d5-fdf1-4171-b252-aa53065621b4

bkeys818 avatar Oct 24 '24 13:10 bkeys818

Just sent!

JuanseHevia avatar Oct 24 '24 23:10 JuanseHevia

Ok, we're getting warmer.

Can you do the following?

  1. Clone this branch.
  2. cd into the notion extension directory.
  3. Install dependencies with npm i
  4. Run ray dev
  5. Open the "Add page to database" command
  6. Copy the error that appears and paste it here.

It looks like you have experience as a developer, but if you need help with anything just let me know.

bkeys818 avatar Oct 25 '24 13:10 bkeys818

Hi!

Is there any alternative we can consider that does not imply me running a development branch locally? I wouldn't want any undesired effects in my personal computer.

On Fri, Oct 25, 2024 at 8:31 AM Ben Keys @.***> wrote:

Ok, we're getting warmer.

Can you do the following?

  1. Clone this branch https://github.com/bkeys818/raycast-extensions/tree/notion-refactor1-debug .
  2. cd into the notion extension directory.
  3. Install dependencies with npm i
  4. Run ray dev
  5. Open the "Add page to database" command
  6. Copy the error that appears and paste it here.

It looks like you have experience as a developer, but if you need help with anything just let me know.

— Reply to this email directly, view it on GitHub https://github.com/raycast/extensions/issues/15025#issuecomment-2437789963, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCTSJK2HED4UYC7WMBLVXFLZ5JB23AVCNFSM6AAAAABQLPCZFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZXG44DSOJWGM . You are receiving this because you authored the thread.Message ID: @.***>

JuanseHevia avatar Oct 25 '24 15:10 JuanseHevia

Unless someone else has been able to repeat the issue, I'm unsure what else we could do.

If it makes any difference, the branch I linked is only one commit ahead of main. All that commit does is add some additional error throws.

bkeys818 avatar Oct 26 '24 14:10 bkeys818

Got it, thanks for the support Ben.

Funny thing, I just cleared the content cache and the problem is solved!

On Sat, Oct 26, 2024 at 9:33 AM Ben Keys @.***> wrote:

Unless someone else has been able to repeat the issue, I'm unsure what else we could do.

If it makes any difference, the branch I linked is only one commit ahead of main. All that commit does is add some additional error throws.

— Reply to this email directly, view it on GitHub https://github.com/raycast/extensions/issues/15025#issuecomment-2439603804, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCTSJKZFJCW6EMTVVVZCKOLZ5OR4BAVCNFSM6AAAAABQLPCZFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZGYYDGOBQGQ . You are receiving this because you authored the thread.Message ID: @.***>

JuanseHevia avatar Oct 26 '24 15:10 JuanseHevia

Odd, glad you found a fix! Hopefully that will be able to help out someone else too.

bkeys818 avatar Nov 02 '24 15:11 bkeys818

@raycastbot close this issue

bkeys818 avatar Nov 02 '24 15:11 bkeys818