question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Report file errors on loader

See original GitHub issue

Currently compilation errors get reported in the entry points (polyfills.ts, main.ts) and for the compilation itself afterwards:

ERROR in ./src/polyfills.ts
Module build failed: Error: TypeScript compilation failed.
    at plugin.done.then (/Users/iminar/tmp/regression-test-project/node_modules/@angular/cli/node_modules/@ngtools/webpack/src/loader.js:479:27)
 @ multi ./src/polyfills.ts
ERROR in ./src/main.ts
Module build failed: Error: TypeScript compilation failed.
    at plugin.done.then (/Users/iminar/tmp/regression-test-project/node_modules/@angular/cli/node_modules/@ngtools/webpack/src/loader.js:479:27)
    at process._tickCallback (internal/process/next_tick.js:103:7)
 @ multi ./src/main.ts
ERROR in Error: Unexpected value 'MdIconModule in /Users/iminar/tmp/regression-test-project/node_modules/@angular/material/material.d.ts' imported by the module 'AppModule in /Users/iminar/tmp/regression-test-project/src/app/app.module.ts'. Please add a @NgModule annotation.

We should instead report errors for a given file on the file loader, and the rest of these errors in the compilation.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bjohnson-vacommented, Oct 23, 2017

Is there a workaround for this?

0reactions
angular-automatic-lock-bot[bot]commented, Sep 7, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Loader reporting syntax errors when dealing with typescript files
When I use typescript 'as' keyword, causes eslint-loader to throw error on the 'as' - " Parsing error: Unexpected token, expected "," "...
Read more >
Run the HCM Data Loader Error Analysis Report
The HCM Data Loader Error Analysis Report is a diagnostic test that provides technical information about data loads to help you resolve errors....
Read more >
How to Use the Data Loader Success and Error Files - YouTube
Do you ever wonder what those success and error files are that are created whenever you use Data Loader ? After an insert,...
Read more >
Common error messages in Data Loader - Salesforce Help
Here's a list of common Data Loader errors you'll receive as you use Data Loader to ... Resolution: Review your file's values for...
Read more >
Webpack worker-loader silently fails on errors - Stack Overflow
The problem is that if there are compilation errors in worker code, it still reports production build as successful, but the output folder...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found