requirejs Questions
3
Solved
I installed plot.ly using conda and tried to use it in offline mode on Jupyterlab:
from plotly.offline import init_notebook_mode
init_notebook_mode(connected=True)
The Firefox developer console ...
Staysail asked 11/1, 2019 at 14:39
1
I have a Node.js project whose modules are imported in the Common.JS way using require. However, the need arose to import a package that is ESM only.
One way to use ESM import from in my project wa...
Hulbert asked 19/7, 2022 at 22:59
2
Solved
I understand that define is used to define a module, and function is an anonymous function, but what does the argument 'require' in the function hold?
If I write anything in define(function(requir...
Commutative asked 7/10, 2014 at 5:41
3
Solved
I have a number of JavaScript "classes" each implemented in its own JavaScript file. For development those files are loaded individually, and for production they are concatenated, but in both cases...
Vulgarism asked 2/2, 2011 at 0:23
6
Solved
I want to switch from JavaScript to TypeScript to help with code management as our project gets larger. We utilize, however, lots of libraries as amd Modules, which we do not want to convert to Typ...
Nike asked 3/4, 2014 at 15:33
3
Solved
I am creating a table with dragable rows with the help of ui-sortable
<tbody ui-sortable="sortableOptions" ng-model="model.list">
<tr ng-repeat="item in model.list">
<td>
<...
Medlin asked 14/10, 2016 at 13:57
2
After a migration from RequireJS to Webpack 4, I was looking for an equivalent to require.onError to capture runtime chunk load errors, but I couldn't find any options to add a global error handler...
Cuspidor asked 22/4, 2019 at 21:37
8
Solved
If I do nothing and add the type definition it works for jquery but lodash gets a
'_' referes to a UMD global, but the current file is a module. Consider adding an import instead.
If I try to ...
Preferment asked 28/11, 2017 at 23:57
2
Solved
I am new to typescript, knockout and requirejs. I have created some demo using this files. Now, I want to implement some minor logic using typescript and knockoutjs.
I have created 4-5 typescript...
Walters asked 7/8, 2016 at 19:16
4
Solved
I have a simple Chrome extension that adds a browser action. When the extension's popup is opened, it needs to access the current tab's URL. Since it doesn't need access to all the tabs, I just hav...
Dialyse asked 28/2, 2015 at 20:48
2
Solved
I am trying to use faker-js package, but I unexpectedly get a TypeError: Cannot read property 'uuid' of undefined for my variable businessId which try to use faker.datatype.uuid()
It usually happen...
Zendavesta asked 6/5, 2022 at 15:20
3
Solved
Suppose I have a simple Hello, World! file in C++ or C (whatever will help me use it easier in Node.js, preferably C) and want to run it from a Node.js file. What is the most efficient way consider...
2
Solved
Having a text file (underscore templates) loaded by require.js on initial app start:
define(['text!templates/template.html'], function(Template){ ... };
When i am now making changes to this file...
Bio asked 13/11, 2013 at 22:50
10
I'm looking into the possibilities to do TDD with TypeScript.
If I write my tests in TypeScript, is it possible to make the import statements return mocks for my class under test?
Or is the only fe...
Ashelman asked 17/4, 2013 at 20:15
3
Solved
I've searched stack overflow for this issue, but am still unclear on why this is happening/how to fix.
I wanted Node Typings in my Typescript project so I entered this command:
npm install @types...
Mcghee asked 6/6, 2017 at 15:40
2
I'd like know if it's possible to link from one module to another module`s property/method.
What I've tried so far but wasn't working:
/**
* {@link module:modules/modulName#id}
*/
My modules ...
4
Solved
Trying to understand where it's right to use "map" with a wildcard vs "paths".
Looking at the require source (but certainly not being 100% fluent with it) it seems like there would functionally b...
Wiltz asked 7/10, 2013 at 3:19
3
Im building a new React app but get the following error -
"require is not defined"
hello-world.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>...
2
I'm having a problem importing the file "score.js" that is in same library of the "background.js" (scripts libary).
I'm new to both js and chrome extensions.
I looked into requi...
Mott asked 12/5, 2021 at 20:17
3
Solved
I use r.js optimizer to combine js files based on build profile as it's suggested in documentation. Here's my build-config.js:
({
baseUrl: ".",
paths: {
jquery: '//ajax.googleapis.com/ajax/libs...
Gnu asked 25/8, 2013 at 6:33
4
Solved
Can I load jQuery migrate via RequireJS? I don't understand how the timing can be handled correctly. See this example:
require([
'jquery',
'jqmigrate'
], function ($) {
if ($.browser.msie) {......
Aman asked 15/1, 2015 at 19:30
6
Solved
I'm developping a small website, and the main HTML page basically looks like this:
<html lang="en">
<head>
<script src="ace.js" type="text/javascript"...
Tweeter asked 15/10, 2021 at 5:15
6
Solved
If I understand correctly, each and every object in JavaScript inherits from the Object prototype, which means that each and every object in JavaScript has access to the hasOwnProperty function thr...
Hadst asked 18/8, 2012 at 10:9
3
Solved
I'm writing a script that's meant to be embedded on 3rd party sites to add functionality to them. I recently ripped out my rather messy custom loader code and started replacing it with requirejs. O...
3
I'm experiencing with knockout.js components and require.js.
This is working well so far, but I'm struggling with the following.
Let's say I have one instance of my component in a very simple html...
Thao asked 10/3, 2016 at 15:21
1 Next >
© 2022 - 2025 — McMap. All rights reserved.