-
Notifications
You must be signed in to change notification settings - Fork 91
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
Invalid path error #12
Comments
The issue comes from e.g. |
Oh. But how can that be? I mean, any entry in a database is essentially a page. |
@dummifiedme Every entry is a page, but that entry can reference a page anywhere else in your Notion workspace. The change for #10 only looked in the subdirectory. I just need to change it so it can reference things anywhere. |
Are you sure about this? Oh maybe! |
@dummifiedme Yeah, I saw that it was null so it wasn't able to read the directory, hence the path is invalid error. I've made some changes to deal with that and handling there being nothing passed into the This runs on three different Notion exports without errors, so I hope it works okay, but I think there may be some slight errors. There are known issues in this. For example, there's the possibility of there being a comma within a field, which messes up the parsing. However, fields with commas are exported with double quotes around them so it shouldn't be too difficult to deal with in the future. I just don't have the time right now. I'm going to make a pull request for the code as is though, so if you want, you can try that out. |
Please have a look at it. It doesn't create a table from databases but creates links to the pages. It's not as refined as your output, but databases part, you can take some inspiration? if you have some time :) |
@dummifiedme Sorry for the delay in this. I was hoping to cover it in an overhaul of the script but that never really became an option. Is this still an issue for you or can I close it? |
Sorry to pester you again :)
I am getting the following error.
PS. I ran the old main.js it worked fine (not the table linking, but ran)
![image](https://user-images.githubusercontent.com/68785729/97761517-e4236280-1b2b-11eb-9e02-bbdb31134a48.png)
Originally posted by @dummifiedme in #11 (comment)
The text was updated successfully, but these errors were encountered: