Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
126 views

It seems like the latest Autodesk Viewer update to version 7.115.0 on November 28 the module has been changed to a Universal Module Definition (UMD). We are importing this script in the SAPUI5 ...
Philipp Kolbe's user avatar
0 votes
1 answer
87 views

Requirejs library fails to load script defined in data-main attribute for require.js script. According to browser output it looks into wrong place. Can't sort it out why and how to fix it. Created ...
0xff's user avatar
  • 11
1 vote
2 answers
106 views

I am attempting to migrate our single-page application from RequireJS to Webpack. As part of this transition, I am gradually rewriting our hundreds of modules from ASM define() syntax to modern ESM ...
John Brink's user avatar
0 votes
0 answers
118 views

I am maintaining some Javascript code in a React application that imports from a Typescript library using the require function. The import statement looks like this: const utc = require('dayjs/plugin/...
Giorgio's user avatar
  • 5,203
-1 votes
2 answers
154 views

This line of code is expensive to run: require(`./path/to/large_file`) Without it, the React app build bundle resulted in 36 MB. With it, it resulted in 92 MB. The above line of code is run during ...
Bear Bile Farming is Torture's user avatar
1 vote
0 answers
75 views

I have a require.js app and I am adding enterprise edition of Ag-Charts in it. I can successfully add 9.0 version of Ag-Charts but when I try to add 10.2 version, it's not loading somehow. Can someone ...
Shankar Patwardhan's user avatar
0 votes
0 answers
79 views

Running "requirejs:desktop" (requirejs) task Error: Parse error using esprima for file: C:/projects/GitProjects/vendorgames-sonarqube/ndcasinocommon/base_common/fcga mes/vendorgames/...
sri harsha's user avatar
1 vote
0 answers
59 views

I work on a fairly large Javascript project (~863 files), where all the code is distributed in a modular way, being practically one file per class (object-oriented). Some things are loaded on the fly, ...
Orlando Aleman's user avatar
-1 votes
1 answer
1k views

having a node js basic project setup with package.json , install a package and try to use both require and import statment in the same file; to do that here is what did so far but not working. First ...
xkeshav's user avatar
  • 54.2k
-1 votes
2 answers
321 views

I am using requireJS in my project and want to load survey-core and survey-creator-core. survey-creator-core has a dependency on survey-core when i checked the js file of survey-creator-core. I got ...
Bhavya Shah's user avatar
-1 votes
2 answers
181 views

I am working on a NetSuite suitescript customization and would like to write the test with Jest. Since suitescript run with Require JS, I would like to know how to correctly mock the function as I ...
Steven Chao's user avatar
1 vote
0 answers
386 views

I'm working on a project that involves deploying Moodle using Docker. The setup includes two Docker containers: one for the database (MariaDB) and one for Moodle (i also have a container for django, ...
Ramon15's user avatar
  • 11
0 votes
1 answer
537 views

I am working on a full-stack project using Express.js for the backend and MongoDB for the database. I am encountering an error when trying to start my server. The error message is as follows: Error: ...
furb's user avatar
  • 1
0 votes
2 answers
1k views

Here is how I built and installed node.js(version: 20.11): ./configure --prefix=/home/tester/node make -j8 make install Here is how I set the environment: export PATH=/home/tester/node/bin:$PATH ...
張俊芝's user avatar
  • 449
0 votes
0 answers
61 views

simple example RequireJs I get Error : Uncaught TypeError: hi is not a function say.js define(function () { var say={}; say.hi=function hi(){ console.log('hi'); } return say; }); ...
ashrf glal's user avatar
0 votes
0 answers
1k views

I had a webpack warning in my nextjs dev server saying Critical dep: the request of a dependency is an expression This was because I imported some modules using variables, but the warning got away ...
avikt's user avatar
  • 1
0 votes
1 answer
101 views

I am attempting to do a singleton pattern in javascript. I am getting error message "Uncaught TypeError: route_socket.getInstance is not a function". I was wondering what am I doing wrong. I ...
Drivers Sea's user avatar
0 votes
0 answers
92 views

I try to use RxJs with Require.JS on Html page (without Angular or WebPack), this is my test <script src="http://requirejs.org/docs/release/2.3.6/comments/require.js"></script&...
Viacheslav's user avatar
  • 1,342
0 votes
0 answers
49 views

I have // mod1.js const f = (_n) => console.info('a:', _n) || _n * 2 module.exports = { f } // mod2.js const { f } = require('./mod1') const g = (_n) => 3 * f(_n) module.exports = { g } and a ...
alain's user avatar
  • 175
0 votes
1 answer
533 views

I'm trying to use the Monaco editor in Flutter Web. The simplest way that I see is to sync load all the resources example. Here's a stand alone html file: <!DOCTYPE html> <html lang="en&...
user3103070's user avatar
1 vote
0 answers
70 views

I'm working on a react native project with expo. My app will display a video and I want to display subtitles with it. I got multiples videos and srt files so I don't use the subtitles module of expo-...
Arhkaz's user avatar
  • 11
0 votes
0 answers
41 views

I am a beginner in nodejs. I am developing a vscode extension based on this guide. I defined a class that requires an external js module, e.g. : thepanel.ts: import * as vscode from "vscode";...
Oliver Lopez's user avatar
0 votes
1 answer
371 views

How do we navigate between different forms using pure coding only? And should I use the respective Form Controller to write its code? I can easily implement this with the help of the user interface ...
M. Hayyan Ali's user avatar
2 votes
1 answer
3k views

So this is my problem: import * as fs from 'fs'; var downloads = 0; const fs = require('fs') fs.readFile('tp.txt', (err, inputD) => { if (err) throw err; downloads = inputD.toString(); })...
Sadra's user avatar
  • 41
1 vote
0 answers
1k views

I use Magento 2 and requireJs optimiser and quite often can run into below error after creating my bundles and visiting my storefront: Uncaught Error: Mismatched anonymous define() module: undefined ...
harri's user avatar
  • 594
1 vote
0 answers
356 views

My react application is not getting properly loaded and when I open browser console it is showing below error- external node-commonjs "events":1 Uncaught ReferenceError: require is not ...
Swami Mahale's user avatar
1 vote
0 answers
325 views

I need to be able to add new .js files to the /public/bots folder after compiling my project into an exe file using the pkg module. Upon launching the application, these new files should be detected, ...
npc-100lvl's user avatar
1 vote
0 answers
107 views

I am hoping to keep things simple by storing the required files on the server hosting my webapp. I am using the latest version of Chart.js and the data label plugin. The data label file is in the same ...
Damian_W's user avatar
0 votes
1 answer
85 views

I am trying to figure out how to read what how many/what files are located within '../mydirectory/images' in a .html file that I have that is the landing page for my website. I need this so I can ...
Wx_Trader's user avatar
  • 185
0 votes
1 answer
930 views

Problem I'm working on migrating my product information from Magento to Shopify, and one of the field is an entire HTML document. While the HTML and CSS can be correctly display, the jQuery codes in &...
Ariel's user avatar
  • 3
0 votes
0 answers
41 views

I am working on an developing a data source object (called data variable in my program) based on Solr queries using require.js My goal is to pass the data variable to an API that I am developing, ...
wthrajat's user avatar
0 votes
0 answers
23 views

I am currently making an application with Electron but when I package my application I have a white screen when I set the parameter textisolation: true. But when I set it to false my modules like ...
balake56's user avatar
0 votes
0 answers
201 views

I am building a Chrome Extension that does STT to Google Documents. It works fine, I managed to add some features to it, but now I want to add an option to select some text from the document. For this ...
VladTbk321's user avatar
0 votes
2 answers
915 views

I have Underscore.js 1.13.2 and I include it using requireJS 2.1.14. paths = { 'underscore': my_folder_path + "/underscore", // for underscore.js .. //path of other files } I see in the ...
Arshad Rehmani's user avatar
0 votes
1 answer
1k views

I'm trying to make it work in content script: manifest.json "content_scripts": [ { "matches": ["<all_urls>"], "js": [ "monaco-...
rigiva's user avatar
  • 11
0 votes
1 answer
120 views

I know that when you do require('./file') where the file.js export is an IIFE, that function will immediately run (obviously). I'm just not sure how to deal with this if the IIFE takes arguments. I'm ...
Oli's user avatar
  • 1
1 vote
0 answers
1k views

I have an app that uses Vite (runs on electron, using electron builder and the plugin for vite) and I had a single page app and the build/app/etc were working great. But, I needed to add a new page ...
d33p's user avatar
  • 11
1 vote
0 answers
108 views

Webpack's require is being used to dynamically load images based on the state of the page. Console Error Uncaught Error: Cannot find module './target.png' at webpackContextResolve (.png$:82:1) at ...
Zach Simmons's user avatar
0 votes
0 answers
31 views

In RequireJS, if multiple scripts have dependencies on a module, are those scripts guaranteed to get executed in the order they are defined once the module is loaded? Basically, with the following ...
Timothy Fisher's user avatar
0 votes
2 answers
439 views

At the moment I'm just starting to learn Vue.js. I can't solve such a problem, when using "require()" an error appears: "Module not found: Error: Can't resolve". If I use static ...
NVY's user avatar
  • 1
-2 votes
1 answer
169 views

I created a separate file for a function and exported it to my main file to use by "import Header from "./Header.js";" but it is throwing error that "require is not defined&...
sanikatiwarekar's user avatar
0 votes
0 answers
329 views

I am copy pasting the code from the tutorial here: https://sabe.io/tutorials/getting-started-with-handlebars-js <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"&...
pathikrit's user avatar
  • 33.7k
1 vote
0 answers
523 views

I've been struggling for a while to include a Plyr library (read & customise audio src) and I need to embed it via requireJS (important). all the other libraries work except this one, I wonder ...
Bosee's user avatar
  • 11
0 votes
1 answer
579 views

With RequireJS, you can do something like: define(['a', 'b', 'c'], function(a, b, c) { console.log(arguments); } Is it possible to do something similar for an ES6 module? Ex: import a from 'a.js'...
kenavuen's user avatar
0 votes
1 answer
133 views

Problem with 'Get started' (https://frontend.design-system.service.gov.uk/get-started/) I am trying to use Govuk-Frontend npm package in Oracle JET Application. I have included the package in ...
Aishwarya B's user avatar
0 votes
1 answer
107 views

I want to implement some feature to my project. This feature is taken from sample-app in github repo. The way it works is i just using theirs css and js file and uploaded to jsdeliver so i get the cdn ...
Andi Fathul Mukminin's user avatar
1 vote
0 answers
41 views

I'm trying to write data of a mysql database to a HTML file (website). I have one HTML file and one script (music_explorer.js) that is declared in the HTML file. I was using this for connecting the ...
Rolando Rodriguez's user avatar
0 votes
1 answer
266 views

My Project structure looks like this - src |- main.js |- math.js math.js is just an AMD module and I am requiring it in main.js I have installed require.js using npm and requiring it in main.js //...
Stack's user avatar
  • 549
0 votes
1 answer
193 views

I have 2 .ts files: linked_list.ts class Node { ***** } class LinkedList{ ***** } export {LinkedList}; and index.ts: import {LinkedList} from "./linked_list"; class LinkedListStack{ ***...
3kShoter's user avatar
7 votes
0 answers
6k views

I'm getting the error from the title in my Vue app with Vite. I seem to have tried everything that I could find online but nothing really seems to work in my case. The problem started when I installed ...
legousk's user avatar
  • 71

1
2 3 4 5
154