Bug repo:
https://github.com/bitflower/stencil-debug-problem
Current behavior:
See repo: importing "debug" doesn't work. I guess to to the fact that the Stencil compiler runs "on the server" (=node/terminal) and the debug module returns the node.js insetad of the browser.js because of that.
Expected behavior:
We can use "debug".
Steps to reproduce:
See repo
Could you please update stencil to the latest release? npm install @stencil/core@latest I believe this was fixed in 0.3.0
Hey guys, sorry for being late to the party.
I'm on Stencil 0.4.3 (can't go higher to 0.6.x right now).
But anyway it is not fixed:

Chrome is trying to access process.stderr.fd....
Re-open or new issue?
Sorry for the inconvenience!
I pulled down your repo and updated to the latest stencil. Then changed the debug import to as follows.
import debug from 'debug';
The issue appears to be fixed no build or runtime error.
Hey @jthoms1, thanks for the continuous support (that said upfront ;-) ).
I work on different things and therefore always might need some time to get back..
Anyway, I had a closer look to the problem again and I created the error scenario in the repo. The repo is now on the latest Stencil version If you might want to have a look that would be awesome!
Repo: bitflower/stencil-debug-problem
Still gives me this:

Would love to se this re-opened.
Let me know if I can provide anything else!
Node: 8.9.4
OS: macOS 10.13.3
EDIT:
Browser: Chrome 64
Updated the repo to Stencil 0.7.0....
Problem persists :-(
Same here. Going same path as @bitflower :)
Hey @jthoms1 I have created a (private) repo for #618 which also showcases this issue.
I have added you to the collaborators! Hope it helps!
Repo:
https://github.com/bitflower/caseos-ui/tree/data_component
Had the tiny hope of this being fixed after #618 is working now :-)
Do you need something else I can provide?
Hey guys, this keeps popping up everytime I add a module using debug (just today). How come nobody else has this!? Is it my setup? Hm ...
@bitflower I will spend some extra time on this today. Hopefully I can find you a solution.
It appears that there is a merged PR in debug that should fix this issue, but it has not been released yet. https://github.com/visionmedia/debug/pull/507
I am going to close this issue because it should be fixed in the next release of debug.
Hey @jthoms1! Great news, thanks a bunch! Am working around this in the meantime....
Wow, debug has kinda a slow release intervals compared to @stencil LOL