You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use parcel middleware feature with the node --inspect flag on I get consecutive errors:
$node --inspect server.js
Debugger listening on ws://127.0.0.1:9229/fde5fc2f-e474-454c-ba0a-6b47e78970fa
For help see https://nodejs.org/en/docs/inspector
⠋ Building...Starting inspector on 127.0.0.1:9229 failed: address already in use
Starting inspector on 127.0.0.1:9229 failed: address already in use
✨ Built in 83ms.
Starting inspector on 127.0.0.1:9229 failed: address already in use
Starting inspector on 127.0.0.1:9229 failed: address already in use
Starting inspector on 127.0.0.1:9229 failed: address already in use
Starting inspector on 127.0.0.1:9229 failed: address already in use
Starting inspector on 127.0.0.1:9229 failed: address already in use
Starting inspector on 127.0.0.1:9229 failed: address already in use
🎛 Configuration (server.js, index.html)
constBundler=require('../parcel/src/Bundler');constapp=require('express')();constfile='index.html';// Pass an absolute path to the entrypoint hereconstoptions={watch: true};// See options section of api docs, for the possibilities// Initialize a new bundler using a file and optionsconstbundler=newBundler(file,options);// Let express use the bundler middleware, this will let Parcel handle every request over your express serverapp.use(bundler.middleware());// Listen on port 8080app.listen(8080);
<html><body></body></html>
🤔 Expected Behavior
I should be able to use node --inspect feature, it solidly work till v1.8.1
😯 Current Behavior
I cannot launch my sever with debug tools turned on
🐛 bug report
When trying to use parcel middleware feature with the node --inspect flag on I get consecutive errors:
🎛 Configuration (server.js, index.html)
🤔 Expected Behavior
I should be able to use node --inspect feature, it solidly work till v1.8.1
😯 Current Behavior
I cannot launch my sever with debug tools turned on
💁 Possible Solution
I investigate the issue for couple of hours, my immediate suspect was the workfarm: https://github.com/noygal/parcel/tree/master/src/workerfarm , but this wasn't the issue.
The real issue was with a similar code found in the watcher dependency:
https://github.com/DeMoorJasper/fswatcher-child
The code is nearly identical to the workfarm code, so I open a PR with the fix that exist on parcel:
DeMoorJasper/fswatcher-child#2
In any case I would migrate this code to parcel package itself, such a sensitive (and duplicated) code should be under parcel package ownership.
🔦 Context
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: