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.

Module build failed

See original GitHub issue
ERROR in ./~/ngx-pipes/src/app/index.ts
Module build failed: TypeError: Cannot read property 'text' of undefined
    at Object.getTokenPosOfNode (C:\Projects\start.slog.no-ng2\node_modules\typescript\lib\typescript.js:6635:71)
    at IdentifierObject.TokenOrIdentifierObject.getStart (C:\Projects\start.slog.no-ng2\node_modules\typescript\lib\typescript.js:78683:23)
    at IdentifierObject.TokenOrIdentifierObject.getText (C:\Projects\start.slog.no-ng2\node_modules\typescript\lib\typescript.js:78704:77)
    at refactor.findAstNodes.filter (C:\Projects\start.slog.no-ng2\node_modules\@ngtools\webpack\src\loader.js:139:44)
    at Array.filter (native)
    at refactor.findAstNodes.forEach.node (C:\Projects\start.slog.no-ng2\node_modules\@ngtools\webpack\src\loader.js:138:14)
    at Array.forEach (native)
    at _removeDecorators (C:\Projects\start.slog.no-ng2\node_modules\@ngtools\webpack\src\loader.js:129:10)
    at Promise.resolve.then (C:\Projects\start.slog.no-ng2\node_modules\@ngtools\webpack\src\loader.js:292:33)
 @ ./src/$$_gendir/app/app.module.ngfactory.ts 40:0-52
 @ ./src/main.ts
 @ multi ./src/main.ts

I am using angular cli

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
danrevahcommented, Apr 10, 2017

Great! the problem was only because of @angular/cli. but updating to Angular 4 is a good idea this days 👍

@juanmazalazar @Lyasan keep me updated as well if it works

1reaction
danrevahcommented, Apr 11, 2017

it’s not related to ngx-pipes but it’s pretty straight forward it’s telling you to use ng-template instead of template.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module Build Failed - Webpack, React, Babel - Stack Overflow
It was solved. The answer was in installing presets npm i --save babel-preset-env babel-preset-react . Then adding another key in the ...
Read more >
Error: Module build failed: Error: Node Sass does not yet ...
This error happened with me after upgrade of node.js. Cause: Node Sass version is not compatible with Node.js version. Solution: you should check...
Read more >
Angular - Code with Mosh Forum
Error : Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): · delete the node_modules folder · delete package-lock.json ...
Read more >
npm run dev: Module build failed, TypeError - Laracasts
I have created a new project and added fortify, jetstream and livewire. When I ran the final "npn run dev" I got the...
Read more >
Rails 6, Uncaught Error: Module build failed #44172 - GitHub
yarn/virtual/babel-loader-virtual-5e1e3f47a6/0/cache/babel-loader-npm-8.2.3-855681b984-78e1e1a919.zip/node_modules/babel-loader/lib/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