Installing normal Aurelia plugins, what Im I doing wrong?
See original GitHub issueIs there anything special wee need to do to make normal plugins work in aurleia-cli This is what I tried`:
- 1: Forked the skeleton-plugin, incase Ive messed up what ever I have in my custom plugin.
- 2: Installed “default esnext” app with aurelia-cli
- 3: Installed plugin-skeleton :
npm install git://github.com/vegarringdal/skeleton-plugin.git --save
- 4: Added to
main.js
this:.plugin('aurelia-skeleton-plugin')
under feature(‘resources’) line - 5: Added to aurelia.json
{
"name": "aurelia-skeleton-plugin",
"path": "../node_modules/aurelia-skeleton-plugin/dist/amd",
"main": "index"
},
But this didnt go very well, I get
Uncaught TypeError: h.load is not a function
and
Unhandled rejection Error: Load timeout for modules: template-registry-entry!aurelia-skeleton-plugin/hello-world.html_unnormalized2,template-registry-entry!aurelia-skeleton-plugin/hello-world.html,text!aurelia-skeleton-plugin/hello-world.html_unnormalized3,text!aurelia-skeleton-plugin/hello-world.html http://requirejs.org/docs/errors.html#timeout
Im sure there is a easy fix for this, so any hints would be great.
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (9 by maintainers)
Top Results From Across the Web
Unable to use Aurelia plugin - Stack Overflow
3 Answers 3 · 1. Main index.js/plugin-name.js : · 2. HTML and CSS resources: If you have html only custom elements, you can...
Read more >Aurelia-polyfills - how to use it?
We've installed aurelia-polyfills plugin but it doens't work (or we use it in wrong way). ... Should we do it in the same...
Read more >aurelia/Discuss - Gitter
Hi There, I need your help, I just startet with a new project from aurelia-cli with webpack-typescript and I'm not able to get...
Read more >7 Reasons Why Your WordPress Plugins or Themes Won't ...
So, here are the most common reasons why your WordPress plugin or theme won't install and what to do about them: Uploading the...
Read more >Top 18 Most Common AngularJS Developer Mistakes - Toptal
Variables referencing DOM in directives; Dodgy jQuery plugins, e.g. those that don't have handlers reacting to the JavaScript $destroy event. If you don't...
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 would suggest to make this restriction more pronounced - I completely missed it and we as a team spent a lot more time trying to make our bridges to work with RequireJS.
Now, speaking of RequireJS: why was that chosen as the leading actor in aurelia-cli? Other than knowing that GistRun was developed that way, there were no hints about RequireJS so far.
Why asking this? Because aurelia-cli became the greatest hit in no time, and now all our bridge users keep asking why is it that we did not deliver aurelia-cli based creation of apps that use these bridges. Pretty unenviable position, I might say with a does of humor 😃
Just wanted to note that I’m trying to follow the Contact Manager Tutorial in the documentation, and hit this same issue. setting
stub: false
resolved the problem. Not sure if I missed a step somewhere, or if this is a problem that actually affects the tutorial.