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;
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
add a comment
|
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
import statement change in ionic 4. please check answer for detail.
– TheParam
Mar 28 at 12:03
add a comment
|
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
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
angular ionic-framework
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
add a comment
|
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
add a comment
|
3 Answers
3
active
oldest
votes
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();
thank you very much
– user1932595
Mar 28 at 15:04
add a comment
|
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!
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
add a comment
|
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
yes I did.. i think this is about ionic 4 is different than 3
– user1932595
Mar 28 at 15:01
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/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
);
);
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%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
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();
thank you very much
– user1932595
Mar 28 at 15:04
add a comment
|
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();
thank you very much
– user1932595
Mar 28 at 15:04
add a comment
|
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();
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();
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
add a comment
|
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
add a comment
|
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!
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
add a comment
|
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!
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
add a comment
|
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!
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!
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
add a comment
|
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
add a comment
|
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
yes I did.. i think this is about ionic 4 is different than 3
– user1932595
Mar 28 at 15:01
add a comment
|
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
yes I did.. i think this is about ionic 4 is different than 3
– user1932595
Mar 28 at 15:01
add a comment
|
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
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
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
add a comment
|
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
add a comment
|
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%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
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
import statement change in ionic 4. please check answer for detail.
– TheParam
Mar 28 at 12:03