question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use JSROOT with Webpack on Node.js environment

See original GitHub issue

After #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:

  1. Opening the base folder with VS Code
  2. Installing the recommended extensions
  3. Pressing F5 to compile and run the extension
  4. Toggling the developer tools with Ctrl+Shift+I in the new window

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
grzankacommented, Jul 11, 2022

@AlbertoPdRF you do a great job with VS Code extension, which profits significantly from JSROOT integration!

0reactions
AlbertoPdRFcommented, Jun 28, 2022

Ok, I’ll handle this on my own from here, as it’s not a problem with JSROOT itself. Thanks for the help! 🙂

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found