Uncaught TypeError: System.config is not a function when migrating AngularJs to Angular8

68 views
Skip to first unread message

Flako

unread,
Jul 23, 2019, 3:02:24 PM7/23/19
to Angular and AngularJS discussion
Hello
I am migrating an application from AngularJs to Angular8, following angular io guide upgrade and google, but I pass from one error to another ... (without understanding exactly what is missing)
A tsc --build C: \ medanitofnd \ tsconfig.json compiles correctly
The file systemjs.config.js indicates an error, although I think I have it as the documentation indicates.

The application is in C:\aplicafnd
	C:\aplicafnd\package.json
	C:\aplicafnd\tsconfig.json
	C:\aplicafnd\app\index.html
	C:\aplicafnd\app\app.component.ts
	C:\aplicafnd\app\app.component.spec.ts
	C:\aplicafnd\app\app.module.ajs.ts   #modulee anghularJS
	C:\aplicafnd\app\app.module.ts
	C:\aplicafnd\app\main.ts
	C:\aplicafnd\app\XXX\  #where XXX are the different modules / services


Thank you if you can guide me to solve the error.
The files can be seen in

Thank you.
Sorry for my english translate.google.com


app.module.ajs.js:5 Uncaught ReferenceError: require is not defined at app.module.ajs.js:5 (anonymous) @ app.module.ajs.js:5 app.module.js:9 Uncaught ReferenceError: require is not defined at app.module.js:9 (anonymous) @ app.module.js:9 main.js:6 Uncaught ReferenceError: require is not defined at main.js:6 (anonymous) @ main.js:6 angular.js:38 Uncaught Error: [$injector:nomod] http://errors.angularjs.org/1.5.11/$injector/nomod?p0=medanito at angular.js:38 at angular.js:2133 at b (angular.js:2057) at Object.module (angular.js:2131) at config.js:207 (anonymous) @ angular.js:38 (anonymous) @ angular.js:2133 b @ angular.js:2057 (anonymous) @ angular.js:2131 (anonymous) @ config.js:207 angular.js:38 Uncaught Error: [$injector:nomod] http://errors.angularjs.org/1.5.11/$injector/nomod?p0=medanito at angular.js:38 at angular.js:2133 at b (angular.js:2057) at Object.module (angular.js:2131) at directives.js:167
package.json
tsconfig.json
app.component.spec.ts
app.component.ts
app.module.ajs.ts
app.module.ts
main.ts
index.html
Reply all
Reply to author
Forward
0 new messages