I have a problem trying to import my defined values from tailwind.config.cjs into PageStats.tsx. Could someone provide me with a clear answer to what ...
I have a problem trying to import my defined values from tailwind.config.cjs into PageStats.tsx. Could someone provide me with a clear answer to what ...
I'm new to MERN development. I'm trying to build a learning management system by following an old tutorial. But I ended up getting this error: The ...
reproduce link https://stackblitz.com/edit/node-sp5xay?file=index.mjs Assume we have a project like this: and we run in terminal it's very conf ...
I have written a class component in reactjs inside render i am calling a button in two different positons with two diff param. And the button i h ...
I am trying to run some tests on files I created which use ipfs-http-client. I write code with typescript and I am using ts-node to run files without ...
I have a problem with reading the variable from a file, which changes it with the promise function. I have two modules: one that exposes configur ...
Is there any way to use modules (e.g. sharp) exported as export = someModule in a Lambda function defined using NodejsFunction in the aws-cdk-lib? The ...
I wish to get an asynchronous dependency at the top level, without having to use top level awaits. Currently I am using a temporary hack by declaring ...
I can't wrap my head around this: I have a module in my project where the module.exports is assigned a function: Now I import the function in sever ...
Im trying to use fs to make a Command-Handler for ESM(ECMAScript) because you can't use fs in ESM i have 2 js enviornments, one with ESM and one with ...
So I have been trying to publish a npm package. Requisites:- CommonJs. Axios (I can change this if you have better options) typescript So t ...
I was fixing a vulnerable jar for my CJS service which was earlier being used by require keyword: The latest version of formidable is in ES so requ ...
I am trying to figure this out for hours but i can not solve this seemingly easy problem. I want to write an nodejs app with typescript. I want to us ...
Sorry if this is a repost/duplicate. I'm needing some guidance with converting this require statement to an import statement. I'm using the mailchim ...
I am trying to create a NPM package but before I do that, I am testing it using the yarn link command and then importing the node_module into another ...
I'm trying to use discord.js module to develop a Discord bot in SvelteKit. In the Discord official example, "discord.js" can be used with following c ...
I'm trying to migrate my fairly large project to TypeScript and I'm having a hard time with imports. I'm still fairly new at programming, so I have n ...
I have a module dotenv which has a function config that I need to call once, first thing when the code runs. With CommonJS, I could do: But with EC ...
I'm working on adding support for .js config file in a NodeJS library. NodeJS support two module system - ESM & CommonJS - and since javascript fi ...
I'm trying to build a simple website using Astro, it runs perfectly fine when using astro dev but I can't build the website using astro build because ...