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.

Webpack issues: Module build failed: Error: Typescript emitted no output for ...

See original GitHub issue

I recently upgraded angular to 2.4.1, and angular2-notifications to 0.4.49, and now I’m getting the following errors when I run webpack:

    ERROR in ./~/angular2-notifications/src/push-notifications.service.ts
    Module build failed: Error: Typescript emitted no output for /home/asdf/git/asdf/node_modules/angular2-notifications/src/push-notifications.service.ts
        at Object.loader (/home/asdf/git/asdf/node_modules/ts-loader/index.js:437:15)
     @ ./~/angular2-notifications/components.js 14:35-78
    
    ERROR in ./~/angular2-notifications/src/notifications.service.ts
    Module build failed: Error: Typescript emitted no output for /home/asdf/git/asdf/node_modules/angular2-notifications/src/notifications.service.ts
        at Object.loader (/home/asdf/git/asdf/node_modules/ts-loader/index.js:437:15)
     @ ./~/angular2-notifications/components.js 8:30-68
    
    ERROR in ./~/angular2-notifications/src/max.pipe.ts
    Module build failed: Error: Typescript emitted no output for /home/asdf/git/asdf/node_modules/angular2-notifications/src/max.pipe.ts
        at Object.loader (/home/asdf/git/asdf/node_modules/ts-loader/index.js:437:15)
     @ ./~/angular2-notifications/components.js 10:17-42
    Warning: Task "webpack:dev" failed. Use --force to continue.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
rmannibucaucommented, Mar 8, 2017

same there with angular 4 rc2 and webpack/typescript

edit: one workaround is to ensure js are loaded before ts so

extensions: ['.js', '.ts', ...],

and not

extensions: ['.ts', '.js', ...],
2reactions
flauccommented, Jan 10, 2017

Hmm, first time I see this. Thanks for reporting it. I’ll look in to it. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack with typescript getting TypeScript emitted no output ...
First change webpack config entry like index.js to index.tsx. Second make sure rule added for tsx file like: { test: /\.
Read more >
Typescript emitted no output · Issue #767 · TypeStrong/ts-loader
Getting the following error: Module build failed: Error: Typescript emitted no output for C:\xampp\htdocs\node-api\src\js\server.ts.
Read more >
webpack/webpack - Gitter
src/app.ts Module build failed: Error: Typescript emitted no output for /Users/administrator/WebstormProjects/TypescriptFifthApp/src/app.ts at Object.loader ...
Read more >
typescript emitted no output for - You.com | The search engine you ...
Hi, using your module with webpack, ts-loader 1.3 and typescript 2.1.4: modulesModuleBuildError: Module build failed: Error: Typescript emitted no output for ...
Read more >
Storybook 6.4.1 fails to start with Typescript issue 12358 (won't ...
Describe the bug When trying to start Storybook 6.4.1, I get this error: ModuleBuildError: Module build failed (from ./node_modules/ts-loader/index.js): ...
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