Most voted "requirejs" questions
Requirejs is a library for loading Javascript files on both the client and server side, asynchronously known as AMD (Asynchronous Module Definition, Asynchronous Module Definition).
Learn more…24 questions
Sort by count of
-
9
votes2
answers217
viewsUsing Jquery Library with Angularamd
I am implementing Angularjs + Requirejs through Angularamd. I want to add the Jquery library but returns the following error when using the "$": Error: $ is not defined I have the main.js configured…
-
5
votes1
answer229
viewsLoading old libraries to Requirejs
What’s the best way to set up old libraries that weren’t built using the AMD specification? I refer to libraries that have not been defined with instruction defines(). In this case, I am trying to…
-
4
votes0
answers196
viewsHow to modularize an app made in Sammy.js with Require.js or "module Pattern"?
I have an app (mobile app) written in Sammy.js with 4 routes. Each route has 40 to 70 lines of code and one evento bindado. Write everything down in one callback from app is turning into a beautiful…
-
4
votes1
answer477
viewsHow to configure Require.JS
Óla gente, I am in doubt of properly configuring the RequireJS, as I also have doubts about the organization of Trees to configure the baseUrl and so I’m going to demonstrate how I’m configuring: .…
-
3
votes1
answer77
viewsWhat is the difference between the Requirejs PATHS and MAP properties
In theory it seems that the two configuration properties of the Requirejs has as its focus the same action. Does anyone know the differences of how both settings work? PATHS: require.config({ paths:…
-
3
votes1
answer92
viewsBuild javascript modules, how to package files (modules)?
I’m using the require js and want to optimize the requests, reading a bit of the documentation on github, I know it is possible to set up a task in Grunt to concatenate my modules more I’m a little…
-
2
votes1
answer141
viewsTesting Viewmodel Knockout with Cucumberjs
I have the definition of Feature as follows: Feature: Shoper can add an item to ShoppingCart Scenario: First item added to ShoppingCart Given I have an Empty ShoppingCart When I add an Item to…
-
2
votes3
answers369
viewsQuestion about loading modules with requireJS and Angularjs
I’m studying a code from a former employee of the company and he used requireJS + Angularjs. He has created several modules with plenty of services etc, but my question is: when using a service or a…
-
2
votes0
answers22
viewsPage Loading and Request via ajax
Hello, does anyone have any example of using requirejs with pages that were loaded via ajax. My question is how to organize the code so that when the page is reloaded via ajax the elements are…
requirejsasked 8 years, 8 months ago user6093432 21 -
2
votes1
answer412
viewsLoad dependencies on demand
I understand by dependency, the need that your script needs or is accessing in some way some method/property or properly an object encapsulated in another javascript file, whether a framework or…
-
2
votes1
answer112
viewsRequirejs data-main does not work
Hello I’m always getting the same message when trying to run my index.html file that tries to reload jQuery from requireJS. /Testerequire/jquery.js net::ERR_FILE_NOT_FOUND Error: Script error for…
-
1
votes1
answer704
viewsDoubts about how Requirejs works
I am making an application that will consume some Twitter data. I am using the library recommended by API developers, as my application is only to consume API I use only Javascript and jQuery, so I…
-
1
votes1
answer75
viewsHow to migrate my website to Requirejs?
Currently I concateno all my Avascripts with Grunt sending the minified file to the page, but I know that a best practice is to use Requirejs to mudularizar everything, but I do not know how to…
-
1
votes1
answer597
viewsAngular + Requirejs
Below is the structure of the code to facilitate: main.js require.config({ baseUrl: '/', shim: { angular: { exports: "angular" }, route: { deps: ["angular"] }, app:{ deps:['route'] }, controller:{…
-
1
votes0
answers377
viewsController does not load Angular + Requirejs
I am developing an architecture to work with Angular in a large application with MVC Aspnet, in this application will not be the Angular that will treat the routes, but rather the Aspnet, so in this…
-
1
votes0
answers76
viewsAngularjs + Requirejs [ Error Injection ]
Introducing I’m developing a structure using the Angularjs and Requirejs. I’m starting to study Requirejs and researched a lot about it, but I haven’t gotten anything clear from it using with the…
-
1
votes0
answers155
viewsrequireJS and Jquery causing dependency problems
I’m trying to apply requireJS to my application, because I’m having some problems. require-config.js var require = { paths: { "jquery": "/admin/admin-v2/bower_components/jquery/dist/jquery.min",…
-
1
votes0
answers21
viewsHow to load modules concatenated with Gulp in Requirejs?
My project has several AMD modules being loaded into the browser by Requirejs. However, I am migrating from Javascript to Typescript and also want to use Gulp to transpose to Javascript and generate…
-
1
votes0
answers138
viewsUsing jQuery + Requirejs + Angularjs correctly
I’m trying to get the file themes/cms/build/js/main.min.jsfunction properly after being charged by Requirejs, but I haven’t been succeeding. The file is loaded, some functions works like…
-
1
votes0
answers17
views". js" extension loses relative path in Requirejs modules
I’m using Bable or Typescript to transpose my ES6 modules to AMD. The problem is that if the file has extension Requirejs cannot locate the files, it looks at the root of the project instead of…
-
1
votes1
answer204
viewsLoad Viewmodel and external template to the Knockout component
I’m trying to load the template and Viewmodel to a knockout component using require.js, but so far unsuccessfully. index.html (view) <!doctype html> <head> <link…
-
0
votes1
answer23
viewsAngularjs + Requirejs + Ngnestable
Talk guys, all right? So I’m working with Requirejs along with Angularjs, today I needed to work with an Ngnestable lib kamilkp/ng-nestable But when I try to load the directive into my app as…
-
0
votes1
answer212
viewsAngular + requirejs Controller logging error
I’m starting an application with Angular + Requirejs. Follow below Main.js ;(function (doc, undefined) { 'use strict'; var $scriptDefault = doc.querySelector('[data-js="script-default"]'); var…
-
-1
votes1
answer1105
viewsImage does not appear in Flatlist React Native
Hello, I’m trying to put together a list with some elements inside it but the image element does not appear but returns the right image size. I created an array with the data I want to show, then…