I am trying to setup aurelia-validation plugin in my project. I am using VS2015. I have installed aurelia-validation plugin using jspm install aurelia-validation command.
Config.js file has been updated "aurelia-validation": "github:aurelia/[email protected]" and in jspm_packages/github I see [email protected] folder.
I have added a plugin in my main.js file.
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging()
.plugin('aurelia-validation');
aurelia.start().then(a => a.setRoot());
}
and have changed my aurelia-app to aurelia-app="main"
When I start the app I get the following error in Firefox console:
Unhandled promise rejection TypeError: aurelia.globalizeResources is not a function
Stack trace:
configure@http://localhost:15724/jspm_packages/github/aurelia/[email protected]/index.js:28:5
loadPlugin/<@http://localhost:15724/jspm_packages/github/aurelia/[email protected]/aurelia-framework.js:34:32
run@http://localhost:15724/jspm_packages/npm/[email protected]/modules/es6.promise.js:91:43
notify/<@http://localhost:15724/jspm_packages/npm/[email protected]/modules/es6.promise.js:105:11
module.exports@http://localhost:15724/jspm_packages/npm/[email protected]/modules/$.invoke.js:6:25
@http://localhost:15724/jspm_packages/npm/[email protected]/modules/$.task.js:40:9
run@http://localhost:15724/jspm_packages/npm/[email protected]/modules/$.task.js:27:7
listner@http://localhost:15724/jspm_packages/npm/[email protected]/modules/$.task.js:31:5
I have tried clearing jspm cache with jspm cc command but that didn't help. All my packages are up to date.
What am I missing?
Thank you.