lmeijdam / angular-umd-dynamic-example

Angular UMD example of loading new modules dynamically
174 stars 55 forks source link

Error types.d.ts TS1005 ';' expected - stuck at eval #21

Open peterennis opened 5 years ago

peterennis commented 5 years ago

Clone repo and build. It does not compile.

Capture665

Also sec errors.

Capture664

So I decided to test upgrading to A8.

Capture666

After a bunch of changes I get stuck with this:

Capture667

https://github.com/peterennis/angular-umd-dynamic-example/commit/b65929c76de0d7ae9a340a783ccb858e83087c0a

@lmeijdam

My foo power ran out at this point.

NOTE: From here: https://github.com/lmeijdam/angular-umd-dynamic-example

AOT and SystemJS The app now supports AOT compilation by typing;

ng build --aot

Next to that I've changed the use of eval to the use of SystemJS to load the modules.

The eval is where I am stuck.

Do you have any plan to update or create a new repo for A8?

lmeijdam commented 5 years ago

its been a while i've updated the source material and worked on the solution. the AOT does not work as planned, but when you set the buildoptimizer to false it should work

lmeijdam commented 5 years ago

regarding angular8, that might come in a later stage when i have more time to focus on the project

ri0t commented 5 years ago

I came a bit further but possibly messed it up by doing: eval(source.toString()) and replacing Http with HttpClient. Now it bundles, but the browser console says SystemJS were undefined.