-
Notifications
You must be signed in to change notification settings - Fork 25.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular 5 production build issue #20095
Comments
I am getting prodction build issue after upgrading to Angular v5 |
Look for |
Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation. |
I had the same issue and I looked for all import from rxjs.
Ctrl+F for |
Updating typescript to 2.6.1 will fix this issue, but we will have warning message as below
|
this solve my issue~~!! |
I can also confirm that using the bindCallback operator on Observable will cause production build errors, unless TypeScript is upgraded above the "supported" version. It is not enough to simply upgrade global TypeScript to 2.6.1, also make sure you upgrade package.json or it won't work.
|
I have the same error .. I am using .. Should I import import "rxjs" ?
|
@Anoop-Goudar Upgrading to TypeScript 2.6.1 also solved my issue. Thank you. |
When using
When using
So I am in a catch 22, where I need |
my problem is ngx-datatable, after upgrade ngx-datatable to 11.0.4, i works swimlane/ngx-datatable#1104 (comment) |
Works with Typescript 2.4.2, i have replaced import { Observable } from 'rxjs/Rx'; by import { Observable } from 'rxjs/Observable'; |
Yes, it solved by updating typescript's version **For Exact version |
I had this error when using import {pipe} from "rxjs/Rx";` and needed to change it to import {pipe} from "rxjs/util/pipe"; |
I'm using only a single BehaviorSubject and the If i try to replace |
You need to import operators. |
@bastienlemaitre
|
I solved it by importing the operator as @bastienlemaitre said. import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import 'rxjs/add/operator/first'; |
I solved it by updating latest vesion "@ionic/app-scripts": "^3.1.4",
"typescript": "^2.6.2", and |
With
|
… resource breaks the build as described on angular/angular#20095
This is my project config:
I just removed or replaced every unnecesary or unnused
|
Thx, suggestion by BartBurger (3rd post) worked like a charm. This should really make it into the upgrade guide, or an FAQ for upgrading |
Upgrading typescript to latest solved the issue |
Changing |
npm i typescript@2.6.1 --save-dev |
worked for me! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
ERROR in ./node_modules/rxjs/_esm5/observable/BoundNodeCallbackObservable.js
Module build failed: TypeError: Cannot read property 'type' of undefined at Object.getEffectiveTypeAnnotationNode (node_modules/typescript/lib/typescript.js:9341:17).
at Object.forEach (/home/arpitha/Desktop/itrack-new/itrack-app/node_modules/typescript/lib/typescript.js:1506:30)
@ ./node_modules/rxjs/_esm5/observable/bindCallback.js 2:0-68
@ ./node_modules/rxjs/_esm5/add/observable/bindCallback.js
@ ./node_modules/rxjs/_esm5/Rx.js
@ ./src/app/service/interceptor.service.ts
@ ./src/app/app.module.ngfactory.js
@ ./src/main.ts
@ multi ./src/main.ts
The text was updated successfully, but these errors were encountered: