question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing normal Aurelia plugins, what Im I doing wrong?

See original GitHub issue

Is 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:closed
  • Created 7 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
adriaticcommented, Jul 3, 2016

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 😃

1reaction
krigcommented, Nov 18, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found