You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Works fine running client side but not with Universal.
/node_modules/ngx-scrollspy/dist/index.js:1 (function (exports, require, module, __filename, __dirname) { import { NgModule, Inject, Optional, OpaqueToken, SkipSelf } from '@angular/core'; ^^^^^^ SyntaxError: Unexpected token import at Object.exports.runInThisContext (vm.js:76:16) at Module._compile (module.js:542:28) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (/Users/aharris/Projects/PNC/portal/src/app/app.module.ts:15:1) at Module._compile (module.js:570:32)
Any help with this much appreciated.
The text was updated successfully, but these errors were encountered:
However, I am not confident that it contains the right way to implement universal compatibility. Therefore, no PR yet.
If a Angular Universal guru comes along and would like to inspect what I did and suggest whether it is the right solution, here is the relevant commit:
Works fine running client side but not with Universal.
/node_modules/ngx-scrollspy/dist/index.js:1 (function (exports, require, module, __filename, __dirname) { import { NgModule, Inject, Optional, OpaqueToken, SkipSelf } from '@angular/core'; ^^^^^^ SyntaxError: Unexpected token import at Object.exports.runInThisContext (vm.js:76:16) at Module._compile (module.js:542:28) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (/Users/aharris/Projects/PNC/portal/src/app/app.module.ts:15:1) at Module._compile (module.js:570:32)
Any help with this much appreciated.
The text was updated successfully, but these errors were encountered: