error TS1005: ';' expected. Typescript Angular 6 For First Build error rxjs inside node_modules
Hello I'm building first Angular Application . I'm creating a new angular application using this command ng new purchase-section
. But when I executing the application using ng serve -o
I got this error .
ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005:
';' expected. node_modules/rxjs/internal/types.d.ts(81,74): error
TS1005: ';' expected. node_modules/rxjs/internal/types.d.ts(81,77):
error TS1109: Expression expected.
I have inspected types.d.ts as I know it is created by angular .
I'm not able to understand the error . Please note that after I got this error I deleted node_modules and I install using npm install wished i got away still I got this error . Your help will be highly appreciated.
Here is My package.JSON code
{
"name": "purchase-section",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^6.0.3",
"@angular/common": "^6.0.3",
"@angular/compiler": "^6.0.3",
"@angular/core": "^6.0.3",
"@angular/forms": "^6.0.3",
"@angular/http": "^6.0.3",
"@angular/platform-browser": "^6.0.3",
"@angular/platform-browser-dynamic": "^6.0.3",
"@angular/router": "^6.0.3",
"core-js": "^2.5.4",
"rxjs": "^6.0.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.6.8",
"@angular/cli": "~6.0.8",
"@angular/compiler-cli": "^6.0.3",
"@angular/language-service": "^6.0.3",
"@types/jasmine": "~2.8.6",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"codelyzer": "~4.2.1",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^4.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.0",
"karma-jasmine": "~1.1.1",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^5.4.2",
"ts-node": "~5.0.1",
"tslint": "~5.9.1",
"typescript": "~2.7.2"
}
}
angular typescript
New contributor
Rifat Murtuza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
|
show 10 more comments
Hello I'm building first Angular Application . I'm creating a new angular application using this command ng new purchase-section
. But when I executing the application using ng serve -o
I got this error .
ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005:
';' expected. node_modules/rxjs/internal/types.d.ts(81,74): error
TS1005: ';' expected. node_modules/rxjs/internal/types.d.ts(81,77):
error TS1109: Expression expected.
I have inspected types.d.ts as I know it is created by angular .
I'm not able to understand the error . Please note that after I got this error I deleted node_modules and I install using npm install wished i got away still I got this error . Your help will be highly appreciated.
Here is My package.JSON code
{
"name": "purchase-section",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^6.0.3",
"@angular/common": "^6.0.3",
"@angular/compiler": "^6.0.3",
"@angular/core": "^6.0.3",
"@angular/forms": "^6.0.3",
"@angular/http": "^6.0.3",
"@angular/platform-browser": "^6.0.3",
"@angular/platform-browser-dynamic": "^6.0.3",
"@angular/router": "^6.0.3",
"core-js": "^2.5.4",
"rxjs": "^6.0.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.6.8",
"@angular/cli": "~6.0.8",
"@angular/compiler-cli": "^6.0.3",
"@angular/language-service": "^6.0.3",
"@types/jasmine": "~2.8.6",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"codelyzer": "~4.2.1",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^4.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.0",
"karma-jasmine": "~1.1.1",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^5.4.2",
"ts-node": "~5.0.1",
"tslint": "~5.9.1",
"typescript": "~2.7.2"
}
}
angular typescript
New contributor
Rifat Murtuza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
'ng serve' is enough
– Hypenate
5 hours ago
@Rifat Please post your package.json so that we can see the versions etc.
– Tinus Jackson
5 hours ago
i am facing same issue.
– Ram Pukar
5 hours ago
@Rifat please add tsconfig.json as well
– Tinus Jackson
5 hours ago
1
Why don't you upgrade your typescript? Seems like your angular and/or rxjs version is not compatible with typescript. Remove the ~ sign in the typescript version, add ^ instead. Then install packages again. Also run 'ng build' before 'ng serve'.
– Code_maniac
5 hours ago
|
show 10 more comments
Hello I'm building first Angular Application . I'm creating a new angular application using this command ng new purchase-section
. But when I executing the application using ng serve -o
I got this error .
ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005:
';' expected. node_modules/rxjs/internal/types.d.ts(81,74): error
TS1005: ';' expected. node_modules/rxjs/internal/types.d.ts(81,77):
error TS1109: Expression expected.
I have inspected types.d.ts as I know it is created by angular .
I'm not able to understand the error . Please note that after I got this error I deleted node_modules and I install using npm install wished i got away still I got this error . Your help will be highly appreciated.
Here is My package.JSON code
{
"name": "purchase-section",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^6.0.3",
"@angular/common": "^6.0.3",
"@angular/compiler": "^6.0.3",
"@angular/core": "^6.0.3",
"@angular/forms": "^6.0.3",
"@angular/http": "^6.0.3",
"@angular/platform-browser": "^6.0.3",
"@angular/platform-browser-dynamic": "^6.0.3",
"@angular/router": "^6.0.3",
"core-js": "^2.5.4",
"rxjs": "^6.0.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.6.8",
"@angular/cli": "~6.0.8",
"@angular/compiler-cli": "^6.0.3",
"@angular/language-service": "^6.0.3",
"@types/jasmine": "~2.8.6",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"codelyzer": "~4.2.1",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^4.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.0",
"karma-jasmine": "~1.1.1",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^5.4.2",
"ts-node": "~5.0.1",
"tslint": "~5.9.1",
"typescript": "~2.7.2"
}
}
angular typescript
New contributor
Rifat Murtuza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Hello I'm building first Angular Application . I'm creating a new angular application using this command ng new purchase-section
. But when I executing the application using ng serve -o
I got this error .
ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005:
';' expected. node_modules/rxjs/internal/types.d.ts(81,74): error
TS1005: ';' expected. node_modules/rxjs/internal/types.d.ts(81,77):
error TS1109: Expression expected.
I have inspected types.d.ts as I know it is created by angular .
I'm not able to understand the error . Please note that after I got this error I deleted node_modules and I install using npm install wished i got away still I got this error . Your help will be highly appreciated.
Here is My package.JSON code
{
"name": "purchase-section",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^6.0.3",
"@angular/common": "^6.0.3",
"@angular/compiler": "^6.0.3",
"@angular/core": "^6.0.3",
"@angular/forms": "^6.0.3",
"@angular/http": "^6.0.3",
"@angular/platform-browser": "^6.0.3",
"@angular/platform-browser-dynamic": "^6.0.3",
"@angular/router": "^6.0.3",
"core-js": "^2.5.4",
"rxjs": "^6.0.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.6.8",
"@angular/cli": "~6.0.8",
"@angular/compiler-cli": "^6.0.3",
"@angular/language-service": "^6.0.3",
"@types/jasmine": "~2.8.6",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"codelyzer": "~4.2.1",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^4.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.0",
"karma-jasmine": "~1.1.1",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^5.4.2",
"ts-node": "~5.0.1",
"tslint": "~5.9.1",
"typescript": "~2.7.2"
}
}
angular typescript
angular typescript
New contributor
Rifat Murtuza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Rifat Murtuza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 5 hours ago
Rifat Murtuza
New contributor
Rifat Murtuza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 6 hours ago


Rifat MurtuzaRifat Murtuza
363
363
New contributor
Rifat Murtuza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Rifat Murtuza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Rifat Murtuza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
'ng serve' is enough
– Hypenate
5 hours ago
@Rifat Please post your package.json so that we can see the versions etc.
– Tinus Jackson
5 hours ago
i am facing same issue.
– Ram Pukar
5 hours ago
@Rifat please add tsconfig.json as well
– Tinus Jackson
5 hours ago
1
Why don't you upgrade your typescript? Seems like your angular and/or rxjs version is not compatible with typescript. Remove the ~ sign in the typescript version, add ^ instead. Then install packages again. Also run 'ng build' before 'ng serve'.
– Code_maniac
5 hours ago
|
show 10 more comments
'ng serve' is enough
– Hypenate
5 hours ago
@Rifat Please post your package.json so that we can see the versions etc.
– Tinus Jackson
5 hours ago
i am facing same issue.
– Ram Pukar
5 hours ago
@Rifat please add tsconfig.json as well
– Tinus Jackson
5 hours ago
1
Why don't you upgrade your typescript? Seems like your angular and/or rxjs version is not compatible with typescript. Remove the ~ sign in the typescript version, add ^ instead. Then install packages again. Also run 'ng build' before 'ng serve'.
– Code_maniac
5 hours ago
'ng serve' is enough
– Hypenate
5 hours ago
'ng serve' is enough
– Hypenate
5 hours ago
@Rifat Please post your package.json so that we can see the versions etc.
– Tinus Jackson
5 hours ago
@Rifat Please post your package.json so that we can see the versions etc.
– Tinus Jackson
5 hours ago
i am facing same issue.
– Ram Pukar
5 hours ago
i am facing same issue.
– Ram Pukar
5 hours ago
@Rifat please add tsconfig.json as well
– Tinus Jackson
5 hours ago
@Rifat please add tsconfig.json as well
– Tinus Jackson
5 hours ago
1
1
Why don't you upgrade your typescript? Seems like your angular and/or rxjs version is not compatible with typescript. Remove the ~ sign in the typescript version, add ^ instead. Then install packages again. Also run 'ng build' before 'ng serve'.
– Code_maniac
5 hours ago
Why don't you upgrade your typescript? Seems like your angular and/or rxjs version is not compatible with typescript. Remove the ~ sign in the typescript version, add ^ instead. Then install packages again. Also run 'ng build' before 'ng serve'.
– Code_maniac
5 hours ago
|
show 10 more comments
7 Answers
7
active
oldest
votes
Just remove ^ from "rxjs": "^6.0.0" from package.json and make it "rxjs": "6.0.0" and it should work fine.
New contributor
Aditya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
@Rifat Murtuza I had the same issue. I investigated that rxjs released a new version 6.4.0. And it brokes the build. According to review, the minimum supported version of TypeScript is 2.8. If you don't want to update TypeScript version, just change "rxjs": "^6.0.0", to "rxjs": "6.3.3"
in package.json.
New contributor
Bolat Kazybayev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
While this code may answer the question, providing additional context regarding how and/or why it solves the problem would improve the answer's long-term value.Read this
– Shanteshwar Inde
5 hours ago
@ShanteshwarInde I edited the answer, thank you.
– Bolat Kazybayev
3 hours ago
i have same issue my "typescript": "~3.2.2" and "rxjs": "6.3.3" please tell me anyone how to solve this error?
– kalai
2 hours ago
add a comment |
Same issue here..
All i did is creating a new project and started it by typing in ng serve
*edit
just updated my typescript verision - everything works fine now.
New contributor
h.pro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Try running 'npm start' and 'ng build' prior to 'ng serve'.
– Code_maniac
5 hours ago
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review
– Liam
2 hours ago
add a comment |
Seems like your angular and/or rxjs version is not compatible with typescript. Remove the ~ sign in the typescript version, add ^ instead. Then install packages again.
Try running 'npm start' and 'ng build' prior to 'ng serve'.
did this but same error
– Rifat Murtuza
4 hours ago
Restart Visual Studio after this. What is your TS version now?
– Code_maniac
4 hours ago
add a comment |
these two changes do the trick:
// in package.json:
"rxjs": "^6.2.2", ==> "rxjs": "latest"
"typescript": "2.7.2", ===> "typescript": "2.8"
add a comment |
i tried all. But i found issue. I had ts lint plugin installed. Which forces file to be ended without space. I removed it and it is working.
You can also remove the space going to that specific file. :D
add a comment |
I was facing the same issue while developing an angular6 project. I spent more time finally it's working for me.
Here is the solution:
- Open "package.json"2
"rxjs" and "typescript" verstion like below screenshot
Change like below screenshot
Next go to your project folder and delete "node_modules" folder.
- After delete next run "npm install" in your project folder
- Finally run "ng serve". It should work (I tried 3 projects and confirmed)
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Rifat Murtuza is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54434333%2ferror-ts1005-expected-typescript-angular-6-for-first-build-error-rxjs-insi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
7 Answers
7
active
oldest
votes
7 Answers
7
active
oldest
votes
active
oldest
votes
active
oldest
votes
Just remove ^ from "rxjs": "^6.0.0" from package.json and make it "rxjs": "6.0.0" and it should work fine.
New contributor
Aditya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Just remove ^ from "rxjs": "^6.0.0" from package.json and make it "rxjs": "6.0.0" and it should work fine.
New contributor
Aditya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Just remove ^ from "rxjs": "^6.0.0" from package.json and make it "rxjs": "6.0.0" and it should work fine.
New contributor
Aditya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Just remove ^ from "rxjs": "^6.0.0" from package.json and make it "rxjs": "6.0.0" and it should work fine.
New contributor
Aditya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Aditya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 3 hours ago
AdityaAditya
591
591
New contributor
Aditya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Aditya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Aditya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
@Rifat Murtuza I had the same issue. I investigated that rxjs released a new version 6.4.0. And it brokes the build. According to review, the minimum supported version of TypeScript is 2.8. If you don't want to update TypeScript version, just change "rxjs": "^6.0.0", to "rxjs": "6.3.3"
in package.json.
New contributor
Bolat Kazybayev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
While this code may answer the question, providing additional context regarding how and/or why it solves the problem would improve the answer's long-term value.Read this
– Shanteshwar Inde
5 hours ago
@ShanteshwarInde I edited the answer, thank you.
– Bolat Kazybayev
3 hours ago
i have same issue my "typescript": "~3.2.2" and "rxjs": "6.3.3" please tell me anyone how to solve this error?
– kalai
2 hours ago
add a comment |
@Rifat Murtuza I had the same issue. I investigated that rxjs released a new version 6.4.0. And it brokes the build. According to review, the minimum supported version of TypeScript is 2.8. If you don't want to update TypeScript version, just change "rxjs": "^6.0.0", to "rxjs": "6.3.3"
in package.json.
New contributor
Bolat Kazybayev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
While this code may answer the question, providing additional context regarding how and/or why it solves the problem would improve the answer's long-term value.Read this
– Shanteshwar Inde
5 hours ago
@ShanteshwarInde I edited the answer, thank you.
– Bolat Kazybayev
3 hours ago
i have same issue my "typescript": "~3.2.2" and "rxjs": "6.3.3" please tell me anyone how to solve this error?
– kalai
2 hours ago
add a comment |
@Rifat Murtuza I had the same issue. I investigated that rxjs released a new version 6.4.0. And it brokes the build. According to review, the minimum supported version of TypeScript is 2.8. If you don't want to update TypeScript version, just change "rxjs": "^6.0.0", to "rxjs": "6.3.3"
in package.json.
New contributor
Bolat Kazybayev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
@Rifat Murtuza I had the same issue. I investigated that rxjs released a new version 6.4.0. And it brokes the build. According to review, the minimum supported version of TypeScript is 2.8. If you don't want to update TypeScript version, just change "rxjs": "^6.0.0", to "rxjs": "6.3.3"
in package.json.
New contributor
Bolat Kazybayev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 4 hours ago
New contributor
Bolat Kazybayev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 5 hours ago


Bolat KazybayevBolat Kazybayev
213
213
New contributor
Bolat Kazybayev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Bolat Kazybayev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Bolat Kazybayev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
While this code may answer the question, providing additional context regarding how and/or why it solves the problem would improve the answer's long-term value.Read this
– Shanteshwar Inde
5 hours ago
@ShanteshwarInde I edited the answer, thank you.
– Bolat Kazybayev
3 hours ago
i have same issue my "typescript": "~3.2.2" and "rxjs": "6.3.3" please tell me anyone how to solve this error?
– kalai
2 hours ago
add a comment |
While this code may answer the question, providing additional context regarding how and/or why it solves the problem would improve the answer's long-term value.Read this
– Shanteshwar Inde
5 hours ago
@ShanteshwarInde I edited the answer, thank you.
– Bolat Kazybayev
3 hours ago
i have same issue my "typescript": "~3.2.2" and "rxjs": "6.3.3" please tell me anyone how to solve this error?
– kalai
2 hours ago
While this code may answer the question, providing additional context regarding how and/or why it solves the problem would improve the answer's long-term value.Read this
– Shanteshwar Inde
5 hours ago
While this code may answer the question, providing additional context regarding how and/or why it solves the problem would improve the answer's long-term value.Read this
– Shanteshwar Inde
5 hours ago
@ShanteshwarInde I edited the answer, thank you.
– Bolat Kazybayev
3 hours ago
@ShanteshwarInde I edited the answer, thank you.
– Bolat Kazybayev
3 hours ago
i have same issue my "typescript": "~3.2.2" and "rxjs": "6.3.3" please tell me anyone how to solve this error?
– kalai
2 hours ago
i have same issue my "typescript": "~3.2.2" and "rxjs": "6.3.3" please tell me anyone how to solve this error?
– kalai
2 hours ago
add a comment |
Same issue here..
All i did is creating a new project and started it by typing in ng serve
*edit
just updated my typescript verision - everything works fine now.
New contributor
h.pro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Try running 'npm start' and 'ng build' prior to 'ng serve'.
– Code_maniac
5 hours ago
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review
– Liam
2 hours ago
add a comment |
Same issue here..
All i did is creating a new project and started it by typing in ng serve
*edit
just updated my typescript verision - everything works fine now.
New contributor
h.pro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Try running 'npm start' and 'ng build' prior to 'ng serve'.
– Code_maniac
5 hours ago
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review
– Liam
2 hours ago
add a comment |
Same issue here..
All i did is creating a new project and started it by typing in ng serve
*edit
just updated my typescript verision - everything works fine now.
New contributor
h.pro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Same issue here..
All i did is creating a new project and started it by typing in ng serve
*edit
just updated my typescript verision - everything works fine now.
New contributor
h.pro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 5 hours ago
New contributor
h.pro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 5 hours ago
h.proh.pro
11
11
New contributor
h.pro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
h.pro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
h.pro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Try running 'npm start' and 'ng build' prior to 'ng serve'.
– Code_maniac
5 hours ago
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review
– Liam
2 hours ago
add a comment |
Try running 'npm start' and 'ng build' prior to 'ng serve'.
– Code_maniac
5 hours ago
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review
– Liam
2 hours ago
Try running 'npm start' and 'ng build' prior to 'ng serve'.
– Code_maniac
5 hours ago
Try running 'npm start' and 'ng build' prior to 'ng serve'.
– Code_maniac
5 hours ago
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review
– Liam
2 hours ago
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review
– Liam
2 hours ago
add a comment |
Seems like your angular and/or rxjs version is not compatible with typescript. Remove the ~ sign in the typescript version, add ^ instead. Then install packages again.
Try running 'npm start' and 'ng build' prior to 'ng serve'.
did this but same error
– Rifat Murtuza
4 hours ago
Restart Visual Studio after this. What is your TS version now?
– Code_maniac
4 hours ago
add a comment |
Seems like your angular and/or rxjs version is not compatible with typescript. Remove the ~ sign in the typescript version, add ^ instead. Then install packages again.
Try running 'npm start' and 'ng build' prior to 'ng serve'.
did this but same error
– Rifat Murtuza
4 hours ago
Restart Visual Studio after this. What is your TS version now?
– Code_maniac
4 hours ago
add a comment |
Seems like your angular and/or rxjs version is not compatible with typescript. Remove the ~ sign in the typescript version, add ^ instead. Then install packages again.
Try running 'npm start' and 'ng build' prior to 'ng serve'.
Seems like your angular and/or rxjs version is not compatible with typescript. Remove the ~ sign in the typescript version, add ^ instead. Then install packages again.
Try running 'npm start' and 'ng build' prior to 'ng serve'.
answered 5 hours ago
Code_maniacCode_maniac
1551211
1551211
did this but same error
– Rifat Murtuza
4 hours ago
Restart Visual Studio after this. What is your TS version now?
– Code_maniac
4 hours ago
add a comment |
did this but same error
– Rifat Murtuza
4 hours ago
Restart Visual Studio after this. What is your TS version now?
– Code_maniac
4 hours ago
did this but same error
– Rifat Murtuza
4 hours ago
did this but same error
– Rifat Murtuza
4 hours ago
Restart Visual Studio after this. What is your TS version now?
– Code_maniac
4 hours ago
Restart Visual Studio after this. What is your TS version now?
– Code_maniac
4 hours ago
add a comment |
these two changes do the trick:
// in package.json:
"rxjs": "^6.2.2", ==> "rxjs": "latest"
"typescript": "2.7.2", ===> "typescript": "2.8"
add a comment |
these two changes do the trick:
// in package.json:
"rxjs": "^6.2.2", ==> "rxjs": "latest"
"typescript": "2.7.2", ===> "typescript": "2.8"
add a comment |
these two changes do the trick:
// in package.json:
"rxjs": "^6.2.2", ==> "rxjs": "latest"
"typescript": "2.7.2", ===> "typescript": "2.8"
these two changes do the trick:
// in package.json:
"rxjs": "^6.2.2", ==> "rxjs": "latest"
"typescript": "2.7.2", ===> "typescript": "2.8"
answered 1 hour ago


Ali BahramiAli Bahrami
123212
123212
add a comment |
add a comment |
i tried all. But i found issue. I had ts lint plugin installed. Which forces file to be ended without space. I removed it and it is working.
You can also remove the space going to that specific file. :D
add a comment |
i tried all. But i found issue. I had ts lint plugin installed. Which forces file to be ended without space. I removed it and it is working.
You can also remove the space going to that specific file. :D
add a comment |
i tried all. But i found issue. I had ts lint plugin installed. Which forces file to be ended without space. I removed it and it is working.
You can also remove the space going to that specific file. :D
i tried all. But i found issue. I had ts lint plugin installed. Which forces file to be ended without space. I removed it and it is working.
You can also remove the space going to that specific file. :D
answered 39 mins ago
pranav-devpranav-dev
331
331
add a comment |
add a comment |
I was facing the same issue while developing an angular6 project. I spent more time finally it's working for me.
Here is the solution:
- Open "package.json"2
"rxjs" and "typescript" verstion like below screenshot
Change like below screenshot
Next go to your project folder and delete "node_modules" folder.
- After delete next run "npm install" in your project folder
- Finally run "ng serve". It should work (I tried 3 projects and confirmed)
add a comment |
I was facing the same issue while developing an angular6 project. I spent more time finally it's working for me.
Here is the solution:
- Open "package.json"2
"rxjs" and "typescript" verstion like below screenshot
Change like below screenshot
Next go to your project folder and delete "node_modules" folder.
- After delete next run "npm install" in your project folder
- Finally run "ng serve". It should work (I tried 3 projects and confirmed)
add a comment |
I was facing the same issue while developing an angular6 project. I spent more time finally it's working for me.
Here is the solution:
- Open "package.json"2
"rxjs" and "typescript" verstion like below screenshot
Change like below screenshot
Next go to your project folder and delete "node_modules" folder.
- After delete next run "npm install" in your project folder
- Finally run "ng serve". It should work (I tried 3 projects and confirmed)
I was facing the same issue while developing an angular6 project. I spent more time finally it's working for me.
Here is the solution:
- Open "package.json"2
"rxjs" and "typescript" verstion like below screenshot
Change like below screenshot
Next go to your project folder and delete "node_modules" folder.
- After delete next run "npm install" in your project folder
- Finally run "ng serve". It should work (I tried 3 projects and confirmed)
answered 17 mins ago


imjayabalimjayabal
328
328
add a comment |
add a comment |
Rifat Murtuza is a new contributor. Be nice, and check out our Code of Conduct.
Rifat Murtuza is a new contributor. Be nice, and check out our Code of Conduct.
Rifat Murtuza is a new contributor. Be nice, and check out our Code of Conduct.
Rifat Murtuza is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54434333%2ferror-ts1005-expected-typescript-angular-6-for-first-build-error-rxjs-insi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
'ng serve' is enough
– Hypenate
5 hours ago
@Rifat Please post your package.json so that we can see the versions etc.
– Tinus Jackson
5 hours ago
i am facing same issue.
– Ram Pukar
5 hours ago
@Rifat please add tsconfig.json as well
– Tinus Jackson
5 hours ago
1
Why don't you upgrade your typescript? Seems like your angular and/or rxjs version is not compatible with typescript. Remove the ~ sign in the typescript version, add ^ instead. Then install packages again. Also run 'ng build' before 'ng serve'.
– Code_maniac
5 hours ago