-
Notifications
You must be signed in to change notification settings - Fork 55
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
Refused to install vue single file components into staging lib #49
Comments
Dear Nicolas, a very interesting widget (cc @astrofrog ). In case you are interested, together with @mariobuikhuizen and @oscar6echo we are building ipyvuetify (which wraps nearly all vuetify widgets), and we will most likely extract ipyvue from that with the best practices on how to build a Vue based widget. We'll open source that in a few weeks I expect, but that doesn't solve your problem though. cheers, Maarten |
The lab extension is compiled into ES modules with tsc first and then processed by webpack (but not by the one whose
This I am facing the same problem, I'll let you know if I manage to get this to work in a nice way. |
I managed to use an |
I didn't manage to get hot reloading in Jupyter Lab but at least in the classical notebook it now seems to work fine and without any too evil hacks. The changes are on https://github.com/flatsurf/flatsurf-widgets. |
Hello,
I'm trying to mount a Vuejs app in the render method of the custom
DOMWigetView
. This Vuejs app relies on.vue
single file component files. While everything builds fine locally withyarn run build
ornpm run build:lib && npm run build:nbextension
, when I tried to install the jupyter extension withjupyter labextension install .
, I get the following errorFrom what I understand, the
.vue
files are ignored by the typescript compiler, and so the output in thelib
directory are just the transpiled.js
files, but they still contain references to the.vue
files from the original.ts
files.Is there anyway to avoid having jupyter even care about the transpiled files? Building the app results in a
dist/index.js
file with all the compiled.ts
and.vue
code inside -- is it necessary to have thetsc
output files in thestaging
directory of the extension installation?For reference, the efforts I've described can be seen here.
Thanks for any guidance.
The text was updated successfully, but these errors were encountered: