Thanks for this. Unfortunately I have a small issue. Installing an external dependency (i.e google maps) using npm install -S @types/google-maps and then using it as an input decorator
@Input() foo : google.maps.Map gives the error:
ReferenceError: google is not defined
at Object.c (C:\work\tests\cli-universal-demo\dist\server.js:2601:31)
at __webpack_require__ (C:\work\tests\cli-universal-demo\dist\server.js:20:30)
at Object.c (C:\work\tests\cli-universal-demo\dist\server.js:3461:23)
at __webpack_require__ (C:\work\tests\cli-universal-demo\dist\server.js:20:30)
at Object.c (C:\work\tests\cli-universal-demo\dist\server.js:7441:20)
at __webpack_require__ (C:\work\tests\cli-universal-demo\dist\server.js:20:30)
at Object.<anonymous> (C:\work\tests\cli-universal-demo\dist\server.js:3550:10)
at __webpack_require__ (C:\work\tests\cli-universal-demo\dist\server.js:20:30)
at Object.<anonymous> (C:\work\tests\cli-universal-demo\dist\server.js:7566:37)
at Object.<anonymous> (C:\work\tests\cli-universal-demo\dist\server.js:7589:30)
Thanks for this. Unfortunately I have a small issue. Installing an external dependency (i.e google maps) using
npm install -S @types/google-maps
and then using it as an input decorator@Input() foo : google.maps.Map
gives the error:The server.js file at that line looks like this:
Note that only using as input decorator (for now at least) gives the error. Using as input to functions or inside functions doesn't give any errors.