Include requirejs and requirejs/text via NPM.
See original GitHub issueRight now these are included in the scripts
directory instead of letting NPM install them.
In the aurelia.json, please move from this:
"prepend": [
"scripts/require.js"
],
"dependencies": [
{
"name": "text",
"path": "../scripts/text"
},
to this:
"prepend": [
"node_modules/requirejs/require.js"
],
"dependencies": [
"text",
And add this to the package.json dependencies
"requirejs": "^2.3.2",
"text": "github:requirejs/text"
Issue Analytics
- State:
- Created 7 years ago
- Reactions:7
- Comments:7 (7 by maintainers)
Top Results From Across the Web
requirejs - npm
Node adapter for RequireJS, for loading AMD modules. Includes RequireJS optimizer. Latest version: 2.3.6, last published: 4 years ago.
Read more >RequireJS in Node
The Node adapter for RequireJS, called r.js, will use Node's implementation of require and Node's search paths if the module is not found...
Read more >How can I use the require-js text-plugin with karma
I was having this issue, too, as I was trying to bring mock JSON files into my test files and parse them with...
Read more >requirejs-text/README.md - UNPKG
The CDN for requirejs-text. ... 21, If using npm: ... 35, directory (or use the [paths config](http://requirejs.org/docs/api.html#config-paths) to place it ...
Read more >REQUIREJS TO WEBPACK - Artis Consulting
I began by using Node.js and used the r.js script delivered as ... the text dependency should use the node module requirejs-text and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think we should fix this. It shouldn’t be hard.
@EisenbergEffect, how does this look: https://github.com/aurelia/cli/pull/391