redpelicans / aurelia-material

Material design for Aurelia
Apache License 2.0
48 stars 14 forks source link

Error: aurelia.globalizeResources is not a function #7

Open ghost opened 8 years ago

ghost commented 8 years ago

Trying to initialize this plugin I get the following error: aurelia.globalizeResources is not a function.

From this thread, it seems the syntax has changed:

https://github.com/CharlesPockert/aurelia-bs-grid/issues/48

UPDATE: Seems you fixed this but the files in your DIST folder were not updated.

casalot commented 8 years ago

When I manually updated to aurelia.globalResources in the index.js, I still got 404's. I solved this by manually adding the material.js file from getmdl and renamed it to material-design-lite@1.0.6.js under jspm_packages/github/google/.

a2bsoftware commented 8 years ago

Adding to casalot's comment because the getmdl link is not working.

I created a new material-design-lite@1.0.6.js file under jspm_packages/github/google/ which contains the following line of code:

module.exports = require("github:google/material-design-lite@1.0.6/material");

Now it is working.

egeland commented 8 years ago

The dist/ files must still be broken, as I get this error on trying this plugin..

Any chance of these being updated soon? :smiley:

timfish commented 8 years ago

Its because globalizeResources was renamed at the beginning of August after v0.15.0:

globalResources(resources: string | string[]): FrameworkConfiguration;

Will likely need some modifications to work. I'll see if I have time to do a pull request some time this week.

timfish commented 8 years ago

Ah, I see there is already a pull request in for this: https://github.com/redpelicans/aurelia-material/pull/6

eric-swann-q2 commented 8 years ago

Looks like pull request was accepted...this should now be resolved.