You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Frankly I may have no idea what I'm doing, but it seems to me like vizceral installed from npm isn't exporting it's subclasses, therefore it's hard to write custom functionality like custom renderers without resorting to copying the entire vizceral codebase to my own project.
After several hours on the web I finally gave up and I'm writing this "issue", because maybe I'm doing something wrong, but trying to import something like the Connection class by doing import Connection from 'Vizceral/base/connection'; (or variants of it) it always ends up with something like Module not found: Error: Cannot resolve module 'Vizceral/base/connection'
Exporting the specific classes from vizceral.js works but needs to change the upstream files in my own repo.
Is this intended behaviour or am I doing something wrong here?
The text was updated successfully, but these errors were encountered:
None of the internal classes were exported. I just exported all the base classes (the ones in src/base). This should hopefully satisfy your use case. There is definitely more work that needs to be done to check to make sure the constructors are called with appropriate parameters and some documentation, but this should unblock you. Let me know if it works for you!
Frankly I may have no idea what I'm doing, but it seems to me like vizceral installed from npm isn't exporting it's subclasses, therefore it's hard to write custom functionality like custom renderers without resorting to copying the entire vizceral codebase to my own project.
After several hours on the web I finally gave up and I'm writing this "issue", because maybe I'm doing something wrong, but trying to import something like the Connection class by doing
import Connection from 'Vizceral/base/connection';
(or variants of it) it always ends up with something likeModule not found: Error: Cannot resolve module 'Vizceral/base/connection'
Exporting the specific classes from
vizceral.js
works but needs to change the upstream files in my own repo.Is this intended behaviour or am I doing something wrong here?
The text was updated successfully, but these errors were encountered: