Use JSROOT with Webpack on Node.js environment
See original GitHub issueAfter #233, I’m trying to improve the ROOT File Viewer VS Code extension by bundling it with Webpack. However, I’m having problems using the HierarchyPainter
as it tries to manipulate the document
, which is not available on a Node.js environment. This may be because of the configuration needed to get Webpack running in the first place, which I think assumes that it runs in the browser, but it could also very well be because of something else.
My attempt at getting everything working is available here, and the error can be seen by:
- Opening the base folder with VS Code
- Installing the recommended extensions
- Pressing
F5
to compile and run the extension - Toggling the developer tools with
Ctrl+Shift+I
in the new window
Issue Analytics
- State:
- Created a year ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How to organize node,js/webpack project with server, client ...
In my opinion, you're right to use separate folders for your node.js(server)/vue.js(client app) as they're effectively 2 separate projects.
Read more >How to transpile ES modules with webpack and Node.js
Learn how webpack interacts with and supports ES modules in this deep dive tutorial on transpilation in Node.js.
Read more >Introduction To Webpack with Node.js - Section.io
This article serves as an Introduction to webpack - webpack is a static module bundler for modern JavaScript applications.
Read more >jsroot and JupyterLab · Issue #166 · root-project ... - GitHub
But when I use jsroot in python within JupyterLab; e.g. import ROOT %jsroot on canvas = ROOT. ... JSROOT supports require.js and node.js...
Read more >Package Using Webpack Not working - Oracle Communities
Can you tell me a little more about your dev environment? What version Node.js? What version of webpack? If you create the application...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@AlbertoPdRF you do a great job with VS Code extension, which profits significantly from JSROOT integration!
Ok, I’ll handle this on my own from here, as it’s not a problem with JSROOT itself. Thanks for the help! 🙂