My angular build is throwing this in web browser. Uncaught SyntaxError: expected expression, got '<' in bundle.js
I am running this command npm run dev:ssr
, and it generates no error.
But when I browse the application it displays the error. I tried with ng serve --aot
but the application is configured to be run only with npm run dev:ssr
.
From where I can debug so I can fix this syntax error.
Edit: More Information
npm run build
makes the bundle.js with correct data in dist/browser. So I think it is some debug feature?