Cannot find module 'ionic-angular'.ts when version upgraded to Ionic 4Ionic directives VS Angular material directives with Ionic FrameworkCannot resolve module 'angular' when import ngstorage using Ionic and WebpackWhat's the difference between an Angular component and moduleCannot find name 'require' after upgrading to Angular4Cannot find module “ionic-native”Cannot find the '@angular/common/http' modulevs code cannot find module '@angular/core' or any other modulesHow to use ionic as app module in angular 1.5Cannot find module 'ionic-angular' Migrating Ionic 3 to Ionic 4Ionic/Angular Issue Cannot find module './fs'

Are there any “Third Order” acronyms used in space exploration?

Bash awk command with quotes

Examples of proofs by making reduction to a finite set

Are space camera sensors usually round, or square?

How clean are pets?

What is a "major country" as named in Bernie Sanders' Healthcare debate answers?

Ethernet, Wifi and a little human psychology

How to publish superseding results without creating enemies

What are the advantages and disadvantages of tail wheels that cause modern airplanes to not use them?

How to be sure services and researches offered by the University are not becoming cases of unfair competition?

Seven Places at Once - Another Google Earth Challenge?

Ambiguity in notation resolved by +

What was the ultimate objective of The Party in 1984?

Why is the car dealer insisting on a loan instead of cash?

How to give my students a straightedge instead of a ruler

Why don't Wizards use wrist straps to protect against disarming charms?

Is it appropriate to CC a lot of people on an email

Can I travel to European countries with the Irish passport and without destination Visa?

How do certain apps show new notifications when internet access is restricted to them?

What is the mathematical notation for rounding a given number to the nearest integer?

How to draw a Venn diagram for X - (Y intersect Z)?

Why does Kubuntu 19.04 show an update that apparently doesn't exist?

Python web-scraper to download table of transistor counts from Wikipedia

What is the meaning of "order" in this quote?



Cannot find module 'ionic-angular'.ts when version upgraded to Ionic 4


Ionic directives VS Angular material directives with Ionic FrameworkCannot resolve module 'angular' when import ngstorage using Ionic and WebpackWhat's the difference between an Angular component and moduleCannot find name 'require' after upgrading to Angular4Cannot find module “ionic-native”Cannot find the '@angular/common/http' modulevs code cannot find module '@angular/core' or any other modulesHow to use ionic as app module in angular 1.5Cannot find module 'ionic-angular' Migrating Ionic 3 to Ionic 4Ionic/Angular Issue Cannot find module './fs'






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















I have this code in Ionic 3. In Ionic 4,




Cannot find module 'ionic-angular'.ts(2307)




How can I make it work in ionic 4? can find any solutions...



 import Events, Content from 'ionic-angular';

@ViewChild(Content) content: Content;
this.content.resize();
this.content.scrollToBottom()









share|improve this question


























  • import statement change in ionic 4. please check answer for detail.

    – TheParam
    Mar 28 at 12:03

















3















I have this code in Ionic 3. In Ionic 4,




Cannot find module 'ionic-angular'.ts(2307)




How can I make it work in ionic 4? can find any solutions...



 import Events, Content from 'ionic-angular';

@ViewChild(Content) content: Content;
this.content.resize();
this.content.scrollToBottom()









share|improve this question


























  • import statement change in ionic 4. please check answer for detail.

    – TheParam
    Mar 28 at 12:03













3












3








3








I have this code in Ionic 3. In Ionic 4,




Cannot find module 'ionic-angular'.ts(2307)




How can I make it work in ionic 4? can find any solutions...



 import Events, Content from 'ionic-angular';

@ViewChild(Content) content: Content;
this.content.resize();
this.content.scrollToBottom()









share|improve this question
















I have this code in Ionic 3. In Ionic 4,




Cannot find module 'ionic-angular'.ts(2307)




How can I make it work in ionic 4? can find any solutions...



 import Events, Content from 'ionic-angular';

@ViewChild(Content) content: Content;
this.content.resize();
this.content.scrollToBottom()






angular ionic-framework






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 28 at 12:11









TheParam

5,9221 gold badge20 silver badges31 bronze badges




5,9221 gold badge20 silver badges31 bronze badges










asked Mar 28 at 11:52









user1932595user1932595

4913 gold badges7 silver badges32 bronze badges




4913 gold badges7 silver badges32 bronze badges















  • import statement change in ionic 4. please check answer for detail.

    – TheParam
    Mar 28 at 12:03

















  • import statement change in ionic 4. please check answer for detail.

    – TheParam
    Mar 28 at 12:03
















import statement change in ionic 4. please check answer for detail.

– TheParam
Mar 28 at 12:03





import statement change in ionic 4. please check answer for detail.

– TheParam
Mar 28 at 12:03












3 Answers
3






active

oldest

votes


















1
















Follow these detailed migration steps in order to upgrade from Ionic 3 to 4: https://ionicframework.com/docs/building/migration



For this specific error the answer is:



import Events, IonContent from '@ionic/angular';

@ViewChild(IonContent) content: IonContent;
// resize() is removed in Ionic 4 (not needed)
this.content.scrollToBottom();





share|improve this answer



























  • thank you very much

    – user1932595
    Mar 28 at 15:04


















1
















From ionic 4 you import statement of ionic-angular slightly changed. please import like below.



import Events, Content from '@ionic/angular';


Here is a Demo on stackblitz



Hope this will help!






share|improve this answer

























  • thanks, but 'Content' not exist also there ('Event' does exist)

    – user1932595
    Mar 28 at 12:18












  • see this link github.com/ionic-team/ionic/issues/14875

    – TheParam
    Mar 28 at 12:30


















0
















What is the command you used to create a project ? if you don't mention --type=angular file, it dont have angular support.



ionic start project_name blank --type=angular 





share|improve this answer

























  • yes I did.. i think this is about ionic 4 is different than 3

    – user1932595
    Mar 28 at 15:01














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/4.0/"u003ecc by-sa 4.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
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55396956%2fcannot-find-module-ionic-angular-ts-when-version-upgraded-to-ionic-4%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









1
















Follow these detailed migration steps in order to upgrade from Ionic 3 to 4: https://ionicframework.com/docs/building/migration



For this specific error the answer is:



import Events, IonContent from '@ionic/angular';

@ViewChild(IonContent) content: IonContent;
// resize() is removed in Ionic 4 (not needed)
this.content.scrollToBottom();





share|improve this answer



























  • thank you very much

    – user1932595
    Mar 28 at 15:04















1
















Follow these detailed migration steps in order to upgrade from Ionic 3 to 4: https://ionicframework.com/docs/building/migration



For this specific error the answer is:



import Events, IonContent from '@ionic/angular';

@ViewChild(IonContent) content: IonContent;
// resize() is removed in Ionic 4 (not needed)
this.content.scrollToBottom();





share|improve this answer



























  • thank you very much

    – user1932595
    Mar 28 at 15:04













1














1










1









Follow these detailed migration steps in order to upgrade from Ionic 3 to 4: https://ionicframework.com/docs/building/migration



For this specific error the answer is:



import Events, IonContent from '@ionic/angular';

@ViewChild(IonContent) content: IonContent;
// resize() is removed in Ionic 4 (not needed)
this.content.scrollToBottom();





share|improve this answer















Follow these detailed migration steps in order to upgrade from Ionic 3 to 4: https://ionicframework.com/docs/building/migration



For this specific error the answer is:



import Events, IonContent from '@ionic/angular';

@ViewChild(IonContent) content: IonContent;
// resize() is removed in Ionic 4 (not needed)
this.content.scrollToBottom();






share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 28 at 14:07

























answered Mar 28 at 14:01









Remi StureRemi Sture

3,0833 gold badges13 silver badges27 bronze badges




3,0833 gold badges13 silver badges27 bronze badges















  • thank you very much

    – user1932595
    Mar 28 at 15:04

















  • thank you very much

    – user1932595
    Mar 28 at 15:04
















thank you very much

– user1932595
Mar 28 at 15:04





thank you very much

– user1932595
Mar 28 at 15:04













1
















From ionic 4 you import statement of ionic-angular slightly changed. please import like below.



import Events, Content from '@ionic/angular';


Here is a Demo on stackblitz



Hope this will help!






share|improve this answer

























  • thanks, but 'Content' not exist also there ('Event' does exist)

    – user1932595
    Mar 28 at 12:18












  • see this link github.com/ionic-team/ionic/issues/14875

    – TheParam
    Mar 28 at 12:30















1
















From ionic 4 you import statement of ionic-angular slightly changed. please import like below.



import Events, Content from '@ionic/angular';


Here is a Demo on stackblitz



Hope this will help!






share|improve this answer

























  • thanks, but 'Content' not exist also there ('Event' does exist)

    – user1932595
    Mar 28 at 12:18












  • see this link github.com/ionic-team/ionic/issues/14875

    – TheParam
    Mar 28 at 12:30













1














1










1









From ionic 4 you import statement of ionic-angular slightly changed. please import like below.



import Events, Content from '@ionic/angular';


Here is a Demo on stackblitz



Hope this will help!






share|improve this answer













From ionic 4 you import statement of ionic-angular slightly changed. please import like below.



import Events, Content from '@ionic/angular';


Here is a Demo on stackblitz



Hope this will help!







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 28 at 11:58









TheParamTheParam

5,9221 gold badge20 silver badges31 bronze badges




5,9221 gold badge20 silver badges31 bronze badges















  • thanks, but 'Content' not exist also there ('Event' does exist)

    – user1932595
    Mar 28 at 12:18












  • see this link github.com/ionic-team/ionic/issues/14875

    – TheParam
    Mar 28 at 12:30

















  • thanks, but 'Content' not exist also there ('Event' does exist)

    – user1932595
    Mar 28 at 12:18












  • see this link github.com/ionic-team/ionic/issues/14875

    – TheParam
    Mar 28 at 12:30
















thanks, but 'Content' not exist also there ('Event' does exist)

– user1932595
Mar 28 at 12:18






thanks, but 'Content' not exist also there ('Event' does exist)

– user1932595
Mar 28 at 12:18














see this link github.com/ionic-team/ionic/issues/14875

– TheParam
Mar 28 at 12:30





see this link github.com/ionic-team/ionic/issues/14875

– TheParam
Mar 28 at 12:30











0
















What is the command you used to create a project ? if you don't mention --type=angular file, it dont have angular support.



ionic start project_name blank --type=angular 





share|improve this answer

























  • yes I did.. i think this is about ionic 4 is different than 3

    – user1932595
    Mar 28 at 15:01
















0
















What is the command you used to create a project ? if you don't mention --type=angular file, it dont have angular support.



ionic start project_name blank --type=angular 





share|improve this answer

























  • yes I did.. i think this is about ionic 4 is different than 3

    – user1932595
    Mar 28 at 15:01














0














0










0









What is the command you used to create a project ? if you don't mention --type=angular file, it dont have angular support.



ionic start project_name blank --type=angular 





share|improve this answer













What is the command you used to create a project ? if you don't mention --type=angular file, it dont have angular support.



ionic start project_name blank --type=angular 






share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 28 at 14:17









anilkunchalaeceanilkunchalaece

1868 bronze badges




1868 bronze badges















  • yes I did.. i think this is about ionic 4 is different than 3

    – user1932595
    Mar 28 at 15:01


















  • yes I did.. i think this is about ionic 4 is different than 3

    – user1932595
    Mar 28 at 15:01

















yes I did.. i think this is about ionic 4 is different than 3

– user1932595
Mar 28 at 15:01






yes I did.. i think this is about ionic 4 is different than 3

– user1932595
Mar 28 at 15:01



















draft saved

draft discarded















































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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55396956%2fcannot-find-module-ionic-angular-ts-when-version-upgraded-to-ionic-4%23new-answer', 'question_page');

);

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







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript