-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to use in the aurelia-cli #12
Comments
Hi, Seems to be issue in the npm package, I'll fix it. |
fixed the package.json and published to npm (v0.2.2) |
Hi @genadis , how did you get this working? I'm pretty much in the same position. Unhandled rejection TypeError: Cannot read property 'componentHandler' of undefined I think I've added the dependencies properly in aurelia.json file as follows:
What would be the config for encapsulated-mdl here? There's no dist folder inside. Thanks! |
I'm not using Aurelia-cli at the moment (I'm using jspm) Seems there is missing dependency configuration of encapsulated-mdl.
If it works for you, I can later publish encapsulated-mdl to npm as well so it's easier to install. |
I'm using CLI as well and have pretty much the same problem. I've gotten it to load properly, however I'm getting a "Mismatched anonymous define() module: function (exports, _aureliaFramework, _encapsulatedMdl, _aureliaEventAggregator) { Here's how I'm loading it in my aurelia.json file:
and I'm using aurelia.use.plugin("aurelia-mdl") in my main.ts file. I'm pretty sure the issue is arising from the _encapsulateMdl. I tried to change the value to just "mdl" since I'm loading normal MDL in node_modules and giving it an alias of "mdl," however that's not working. This is in the mdl.js file you provided:
|
@beeterry @sergiuoala @egeland If it's still relevant for you,
notice the resources in
and in bootstrap (as usual):
|
Hi,
So I'm trying out the new
aurelia-cli
and it seems to only use packages via npm.I've tried all sorts of contortions, but I can't seem to get
aurelia-mdl
and itsencapsulated-mdl
dependency to work - I just get errors in the browser.Have you tried the
cli
? Did you getmdl
to work and if so, how?I'm wanting to migrate my project (based on
aurelia-mdl
) to use thecli
as the packaging looks very nice in that structure, but I'm stuck on this..Any and all assistance would be very much appreciated.
My expected "happy path" for a basic use case (which does not work at present):
au new
(follow the prompts)npm install aurelia-mdl
aurelia_project/aurelia.json
:app.html
:<require from="encapsulated-mdl/material.amber-pink.min.css"></require>
au run --watch
At this point I get errors: 😭
So I guess that the default, commonjs path is screwy, and change my entry in
aurelia_project/aurelia.json
to:Now I get
I try to
npm install annoto-mdl --save
, but get404 Registry returned 404 for GET on https://registry.npmjs.org/annoto-mdl
I search for
annoto-mdl
, but Google failed to find it for me.. can you help? 😓I notice in the
package.json
that there are references to it and a bitbucket repo, but that appears to be inaccessible:Cheers,
Frode
😃
The text was updated successfully, but these errors were encountered: