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.

Node.js Tracking bug

See original GitHub issue

Meta bug for tracking issues with running Blockly under Node.js.

Known issues:

  • Blockly.utils.xml.createElement & Blockly.utils.xml.createTextNode
  • Blockly.utils.xml.domToText
  • Blockly.utils.xml.textToDomDocument

The initial goal is to be able to load a set of blocks from XML onto a headless workspace, and generate code.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
samelhusseinicommented, Sep 30, 2019

Yes, we still need an XML serializer polyfill for Blockly.utils.xml.domToText. I think we can use jsdom for that. Blockly.utils.xml.createElement and Blockly.utils.xml.createTextNode are taken care of by using jsdom to polyfill a document element. If jsdom doesn’t do it, we should consider just relying on https://www.npmjs.com/package/dom-parser and https://www.npmjs.com/package/xmlserializer for dom parsing and xml serialization.

1reaction
samelhusseinicommented, Aug 28, 2019

Hey @DaveWelling. We have also since tackled this issue. You can read more about the release here: https://groups.google.com/forum/#!topic/blockly/HZuw6KZWqYY

We are officially publishing our releases to NPM, wrapping each of our compressed files in a UMD module. We chose UMD to support both AMD and CommonJS ecosystems.

This should work out the box for Node, you can find it on NPM here: https://www.npmjs.com/package/blockly

and there’s a sample for using it with Node here: https://github.com/google/blockly-samples/tree/master/blockly-node

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · nodejs/node - GitHub
Expose a faster way to create objects with properties for Node-API feature request Issues that request new features to be added to Node.js....
Read more >
Node Error Logging - TrackJS
Simple error tracking and debugging for your NodeJS website and API with TrackJS. We automatically log and track bugs in your NodeJS code...
Read more >
Monitor & Detect Errors in Node.js Applications - Bugsnag
Error monitoring and reporting with Bugsnag is the most direct way to improve Node.js application quality for your users. Learn more today.
Read more >
analytics and bug tracking for Node.js apps - Nucleus.sh
Cross-platform and real-time with bug reports and offline tracking. As simple as including the Node module. import Nucleus from "nucleus-analytics" Nucleus.
Read more >
NodeJS Project On Bug Tracking System - FreeProjectz
The main objective of the NodeJS Project On Bug Tracking System is to manage the details of Bug Types, Managers,Bugs, Testers, Developers.
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