aurelia / validation

A validation plugin for Aurelia.
MIT License
132 stars 128 forks source link

Uncaught (in promise) Error: Error invoking SVGAnalyzer. Check the inner error for details. #231

Closed fabiomdf closed 8 years ago

fabiomdf commented 8 years ago

I did the download and installation of aurelia-validation@0.6.6 after configure the application plugin:

export function configure(aurelia){

    aurelia.use
           .standardConfiguration()
           .developmentLogging()
           .plugin("aurelia-validation");

    aurelia.start().then(a => a.setRoot('app', document.body));

};

it shows me this error

what am I doing wrong? :(

aurelia-pal.js:20 Uncaught (in promise) Error: Error invoking SVGAnalyzer. Check the inner error for details.

inner error: TypeError: _aureliaPal.DOM.createElement is not a function at createElement (http://localhost:54141/jspm_packages/npm/aurelia-binding@1.0.0-beta.1.3.0/aurelia-binding.js:4391:31) at new SVGAnalyzer (http://localhost:54141/jspm_packages/npm/aurelia-binding@1.0.0-beta.1.3.0/aurelia-binding.js:4400:11) at Object.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:364:14) at InvocationHandler.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:339:168) at Container.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:587:25) at StrategyResolver.get (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:145:37) at Container.get (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:518:41) at Object.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:389:105) at InvocationHandler.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:339:168) at Container.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:587:25) at createElement (http://localhost:54141/jspm_packages/npm/aurelia-binding@1.0.0-beta.1.3.0/aurelia-binding.js:4391:31) at new SVGAnalyzer (http://localhost:54141/jspm_packages/npm/aurelia-binding@1.0.0-beta.1.3.0/aurelia-binding.js:4400:11) at Object.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:364:14) at InvocationHandler.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:339:168) at Container.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:587:25) at StrategyResolver.get (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:145:37) at Container.get (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:518:41) at Object.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:389:105) at InvocationHandler.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:339:168) at Container.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:587:25) at new AggregateError (http://localhost:54141/jspm_packages/npm/aurelia-pal@1.0.0-beta.1.1.1/aurelia-pal.js:20:13) at Container.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:589:15) at StrategyResolver.get (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:145:37) at Container.get (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:518:41) at Object.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:389:105) at InvocationHandler.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:339:168) at Container.invoke (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:587:25) at StrategyResolver.get (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:145:37) at Container.get (http://localhost:54141/jspm_packages/npm/aurelia-dependency-injection@1.0.0-beta.1.1.5/aurelia-dependency-injection.js:518:41) at HtmlBehaviorResource.initialize (http://localhost:54141/jspm_packages/npm/aurelia-templating@1.0.0-beta.1.2.0/aurelia-templating.js:3252:40)AggregateError @ aurelia-pal.js:20invoke @ aurelia-dependency-injection.js:589get @ aurelia-dependency-injection.js:145get @ aurelia-dependency-injection.js:518invoke @ aurelia-dependency-injection.js:389invoke @ aurelia-dependency-injection.js:339invoke @ aurelia-dependency-injection.js:587get @ aurelia-dependency-injection.js:145get @ aurelia-dependency-injection.js:518initialize @ aurelia-templating.js:3252initialize @ aurelia-templating.js:2515initialize @ aurelia-templating.js:2434(anonymous function) @ aurelia-templating.js:2795

jdanyow commented 8 years ago

do you have any forks? jspm inspect --forks

fabiomdf commented 8 years ago

npm:aurelia-binding 1.0.0-beta.1.2.2 1.0.0-beta.1.3.0 npm:aurelia-dependency-injection 1.0.0-beta.1.1.5 1.0.0-beta.1.2.0 npm:aurelia-loader 1.0.0-beta.1.1.1 1.0.0-beta.1.2.0 npm:aurelia-logging 1.0.0-beta.1.1.2 1.0.0-beta.1.2.0 npm:aurelia-metadata 1.0.0-beta.1.1.6 1.0.0-beta.1.2.0 npm:aurelia-pal 1.0.0-beta.1.1.1 1.0.0-beta.1.2.0 npm:aurelia-path 1.0.0-beta.1.1.1 1.0.0-beta.1.2.0 npm:aurelia-task-queue 1.0.0-beta.1.1.1 1.0.0-beta.1.2.0 npm:aurelia-templating 1.0.0-beta.1.1.4 1.0.0-beta.1.2.0

jdanyow commented 8 years ago

k you'll need to jspm install each of these to clean up the forks... eg jspm install aurelia-binding and so on.

fabiomdf commented 8 years ago

I did it, but unfortunately the error is still there.

doktordirk commented 8 years ago

gulp unbundle (just a guess)

else rebuild the config (@jdanyow i'd lke to see a task for that. i'm getting tired of explaining howto)

jdanyow commented 8 years ago

@fabiomdf let us know if @doktordirk's steps solve your issue

fabiomdf commented 8 years ago

Now it's working. I did exactly what @doktordirk said. Thank you guys very much.

jdanyow commented 8 years ago

:+1:

ams3cf commented 8 years ago

For those that got here via Google - I ran across the same issue after installing aurelia-dialog; following the instructions from @doktordirk resolved the issue for me as well.

jszpila commented 8 years ago

I've also run in to this issue when using aurelia-framework@1.0.0-rc.1.0.0 and installing aurelia-validatejs@0.7.0 and @doktordirk's instructions did not resolve the issue. Any other ideas on what I can do?

doktordirk commented 8 years ago

do you have any forks? jspm inspect --forks

ps: why 0.7? that's doesn't seem to make much sense. i'd expect either 0.6.6 or 0.11.2 or something

jszpila commented 8 years ago

@doktordirk - thanks for the quick response. I have the following forks:

npm:aurelia-binding 1.0.0-rc.1.0.0 1.0.0 npm:aurelia-dependency-injection 1.0.0-rc.1.0.0 1.0.0 npm:aurelia-loader 1.0.0-rc.1.0.0 1.0.0 npm:aurelia-logging 1.0.0-rc.1.0.0 1.0.0 npm:aurelia-metadata 1.0.0-rc.1.0.0 1.0.0 npm:aurelia-pal 1.0.0-rc.1.0.0 1.0.0 npm:aurelia-path 1.0.0-rc.1.0.0 1.0.0 npm:aurelia-task-queue 1.0.0-rc.1.0.0 1.0.0 npm:aurelia-templating 1.0.0-rc.1.0.0 1.0.0

I installed them per @jdanyow's instructions above the I still get the error, both before and after following your steps again.

I guess one question I should ask is when you say "delete the jspm folder" do you mean the jspm_packages folder or another folder (I have jspm_packages/github/jspm and node_modules/jspm)?

doktordirk commented 8 years ago

the whole ./jspm_packages folder. but maybe just try jspm update -a first

jszpila commented 8 years ago

Thanks, jspm update seems to have resolved the issue.