Skip to main content
3 votes
3 answers
1k views

I'm building a URL shortener app in Node.js (v20.16.0) using Express. In my controller/user.js, I try to import uuid like this: const { v4: uuidv4 } = require('uuid'); But when I run npm start, I get ...
Hamza Fareed's user avatar
3 votes
1 answer
133 views

Background: There are a number of modules in the local lib eg Eg-1.rakumod Eg-2.rakumod Eg-3.rakumod, each Eg-\d is referenced in META6.json file, and each module has the code sub SITE is export { ... ...
Richard Hainsworth's user avatar
6 votes
3 answers
7k views

I’m working on a React Native project using Expo SDK 53 and React Native 0.79.2. When running the app, I get this runtime error: [runtime not ready]: ReferenceError: Property 'require' doesn't exist, ...
Efe Çağatay ERCAN's user avatar
0 votes
1 answer
69 views

I'm using type module/import syntax for the rest of my project, but the Sequelize CLI generates files with require syntax. How should I handle this? I'm already having trouble with not being able to ...
t t's user avatar
  • 1
1 vote
2 answers
92 views

I read other posts about $_SERVER['DOCUMENT_ROOT'] (like Where to set PHP $_SERVER['DOCUMENT_ROOT'] Trailing Slash?) but what happened to me is that all the pages in my website basically lost the ...
Matt's user avatar
  • 63
0 votes
1 answer
1k views

I am installing a plugin in Vite, but I run into an error message stating that the package only supports ESM, not CJS. package.json { "devDependencies": { "example-package": &...
rozsazoltan's user avatar
  • 18.2k
1 vote
1 answer
51 views

I want to implement the following for more than one (i.e. many) functions (function1(), function2(), ...etc.). Currently I have it separately as follows: template <typename T> concept iterator_1 ...
Gyulaxxx's user avatar
0 votes
1 answer
69 views

I'm sure this has something to do with the timing of things loading, but I can't figure it out. I'm using Oracle's Jet charting libraries and trying to convert the y-axis to a percent When I run this ...
theduckspants's user avatar
5 votes
1 answer
162 views

I am trying to define my own coroutine promise type, and I have the following declarations: void return_void() requires std::same_as<T, void> {} template<class X> void return_value(X&&...
Joseph Garvin's user avatar
0 votes
1 answer
35 views

I have an image on my About page of a react app which i'd like the image to change to a new image every 5secs. I have set up my hooks and my aboutImg state is initially set to require('./img/rope.jpg')...
Emma's user avatar
  • 1
0 votes
1 answer
171 views

I'm trying to use the --exec option to run a command before the nestjs server start (--require). I want to modify the start:dev script in my package.json But I can not make it work, always got an ...
Jerome 's user avatar
  • 2,781
2 votes
2 answers
144 views

We have base LUA file ~/.hammerspoon/init.lua which can load a spoon package: hs.loadSpoon("Foo") Now we have our package file init.lua by path: ~/.hammerspoon/Spoons/Foo.Spoon/init.lua It ...
Kirby's user avatar
  • 3,127
0 votes
1 answer
118 views

For a large (non-Rails) ruby project with thousands files not following naming convention for class, module and constants that uses a lot require and require_relative and potential circular dependency,...
xtremeHitori's user avatar
0 votes
0 answers
38 views

I have several files on my server located at /var/www/files/ My vuejs is in ~/Dev/app I did : let file = require('/var/www/files/myfile.jpg') then npm run build my app. But I have this error 🫣 : ...
vincentfromquali's user avatar
1 vote
1 answer
143 views

I am learning solidity and here I encountered some test error. I was running script test using hardhat npx hardhat test. This error was produced error Error [ERR_REQUIRE_ESM]: require() of ES Module C:...
Emma Tungsten's user avatar

15 30 50 per page
1
2 3 4 5
215