-
Notifications
You must be signed in to change notification settings - Fork 126
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
TypeError: null is not an object (evaluating 'libraryController.importShareableObjectReference_intoDocument(this._object, this._documentData).localObject') #178
Comments
Yes indeed, the API changed in between. Thanks for spotting this. Other than that, does the API make sense? Any rough edges? |
For me it makes sense. I'm trying to generate a document with all symbols from libraries. I'm trying to use this new API, and my approach is this:
Thanks so much! :) |
Also @mathieudutour, This is blocking for me, Would I have a workaround? Thanks!!! |
What is “this”? |
Also this bug only happens when trying to import a symbol that have already been imported |
But this error is thrown when I call the import the first symbol. |
Well it’s probably already imported by another symbol or something.
Yes it makes sense that it’s returned even if it’s already imported because it’s still a reference to a Library.
… On 20 Apr 2018, at 15:01, Ivan Ortega Alba ***@***.***> wrote:
But this error is thrown when I call the import the first symbol.
Does it make sense that you receive a symbol already imported from the function getImportableSymbolReferencesForDocument?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Oh! Thank you @mathieudutour! Now, I have skipped the already imported symbols, because I have nested symbols inside other symbols. Now we have the imported symbols in the document, but they still are linked to the library. |
Hi :)
I'm working with the new Library implementation in JS API. Working on Sketch 50 beta and the branch to introduce the compatibility on libraries. I have found this problem.
Running my code:
When I call
import()
I receive this error:And researching about the implementation this function
importShareableObjectReference_intoDocument
return null:So, when we call
.localObject()
the error is thrown.The text was updated successfully, but these errors were encountered: