« first day (3388 days earlier)      last day (1543 days later) » 

12:36 AM
TypeError: express_1.default is not a function
"compilerOptions": {
    "module": "commonjs",
    "target": "es6",
    "resolveJsonModule": true,
    "esModuleInterop": true,
    ....
  },
7
A: NodeJS + TypeScript: Unclear syntax with type script compiled code

LiamI solved this by adding the following to tsconfig.json: { "compilerOptions": { ... "module": "commonjs", "esModuleInterop": true, ... } } The esModuleInterop flag is described as: "Emit __importStar and __importDefault helpers for runtime babel ecosystem compatibility and ...

Trying to import using that syntax and I am getting that error. The SO answer I got says to include something I have already included in my compilerOptions
 
 
2 hours later…
2:08 AM
hey is possible to select an area between 2 pixel locations and use it as an image, like box UV but in CSS and for 2d Images?
I need this for a player skin renderer
once again, dont ask, I have friends who ask for a lot of things
like wthout css sprites
because I need to set the width and height, and css sprites require width and height to be at the image's pixel location, cant have that
 
 
1 hour later…
3:27 AM
Nevermind I firgured it out AND made it responsive 0-0
codepen.io/SkylerSpark/pen/XWJGapP Beautiful... a steve head 3D rendered from an actual skin file
 
3:59 AM
Alright finished the basics, got 2D and full 3D head rendering done
You can append any MC skin to the css link and it will render it 2d and 3d
although finishing the body in 3D is going to be a pain in the arse
 
 
3 hours later…
6:59 AM
Hey everybody! Hope you're doin' well. Got a question to express. Is it possible to create routes based on an array. Let's say the array looks like [method, path, callback], so in concrete ['get', '/hello-world', function() {console.log('callback')]. I could not find any way to pass the method because i always need to use something like app.get...
 
 
2 hours later…
9:21 AM
how to get localdatestring in 24 hours format
 
@KrishnaMohan Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
@KrishnaMohan Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
1 message moved to Trash can
 
new Date(data).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
 
 
3 hours later…
12:49 PM
Hey guys, can someone please help out with this issue I'm having? stackoverflow.com/questions/59905615/…
 
 
5 hours later…
5:24 PM
Hii guys, if anyone is up to help me with this problem would greatly be appreciated.. i'm very new to web development using React so yea.. stackoverflow.com/questions/59911617/…
 
@Falady Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 

« first day (3388 days earlier)      last day (1543 days later) »