-
trying to add a plugging by following the instructions on https://jbrowse.org/jb2/docs/config_guides/jexl/ and got an error like this: createModel.js:16 Uncaught TypeError: P is not a constructor any suggestions? thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi there, Old code:
New code
I just updated the doc online |
Beta Was this translation helpful? Give feedback.
if you are using the embedded components then loading plugins is a bit different. You can actually specify the plugin using normal code and don't have to import an external file.
See "Plugins defined in your code" example in our storybook here https://jbrowse.org/storybook/lgv/main/?path=/docs/using-plugins--docs (and the full source code listing here https://github.com/GMOD/jbrowse-components/blob/main/products/jbrowse-react-linear-genome-view/stories/examples/WithInlinePlugins.tsx)