Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. System.config({
  2. map: {
  3. 'angular2-recaptcha': 'node_modules/angular2-recaptcha'
  4. },
  5. packages: {
  6. app: {
  7. format: 'register',
  8. defaultExtension: 'js'
  9. },
  10. 'angular2-recaptcha': {defaultExtension: 'js', main:'index'}
  11. }
  12. });
  13.  
  14. <script src="systemjs.config.js"></script>
  15. <script>
  16. System.import('app').catch(function(err){ console.error(err); });
  17. </script>
  18.  
  19. Uncaught ReferenceError: System is not defined
  20. at localhost/:29
  21. compiler.es5.js:15996 Uncaught Error: Unexpected module 'ReCaptchaModule' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@Component annotation.
  22. at syntaxError (compiler.es5.js:1690)
  23. at compiler.es5.js:15430
  24. at Array.forEach (<anonymous>)
  25. at CompileMetadataResolver.webpackJsonp.../../../compiler/@angular/compiler.es5.js.CompileMetadataResolver.getNgModuleMetadata (compiler.es5.js:15412)
  26. at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler._loadModules (compiler.es5.js:26795)
  27. at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler._compileModuleAndComponents (compiler.es5.js:26768)
  28. at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler.compileModuleAsync (compiler.es5.js:26697)
  29. at PlatformRef_.webpackJsonp.../../../core/@angular/core.es5.js.PlatformRef_._bootstrapModuleWithZone (core.es5.js:4536)
  30. at PlatformRef_.webpackJsonp.../../../core/@angular/core.es5.js.PlatformRef_.bootstrapModule (core.es5.js:4522)
  31. at Object.../../../../../src/main.ts (main.ts:11)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement