My Angular build is giving me this error in the web browser:
Uncaught SyntaxError: expected expression, got '<' in bundle.js
When I run the command npm run dev:ssr
, no errors are generated.
However, when I try to access the application, the error appears. I attempted using ng serve --aot
but the application is set up to only run with npm run dev:ssr
. Where should I look to debug and resolve this syntax error?
Edit: Additional Information
npm run build
creates the bundle.js file with accurate data in dist/browser. Could this be related to a debugging feature?