- AuthorPosts
- August 10, 2019 at 9:09 am #30918
Please would you be so kind and help.
after running ionic serve i got lots of typescript errors. I will start with the first as I tried to solve it based on the documentation you offer and video tutorials but I struggle to implement. Please I have done the following to solve it.
1st error
Typescript Error
Cannot find name ‘DragulaService’.in the file src/components/question/question.ts
I installed as you recommend the through following commands
npm install ng2-dragula dragula –save
npm install dragula –save
but the typescript error does not disappeared.Next I tried to step into the file src/components/question/question.ts and change the line where the path is to the folder
from
import { DragulaModule,DragulaService } from ‘../../../node_modules/ng2-dragula/ng2-dragula’;
to
import { DragulaModule,DragulaService } from ‘ng2-dragula’;
than I got this error
Typescript ErrorProperty ‘subscribe’ does not exist on type ‘(groupName?: string) => Observable
so evidently this way i will not be able to move forward.I am pasting as well what versions I have installed on the computer
Ionic Framework: 3.9.5 Ionic App Scripts: 3.2.2 Angular Core: ^6.0.0 Angular Compiler CLI: 5.2.11 Node: 10.16.2 OS Platform: Windows 10 Navigator Platform: Win32 User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134
August 12, 2019 at 10:44 am #31006Hi
see in my system ionic version and it’s dependencies http://prntscr.com/ork9hj
And here is my package.json folder:https://we.tl/t-zdbGNmT94A add this package.json folder in the main folder and then serve this command npm installAugust 12, 2019 at 10:59 am #31012<p cli packages: (C:\Users\Tomas Torok\AppData\Roaming\npm\node_modules/p>
<p<span lang=”SK”><span style=”mso-spacerun: yes;”> </span>@ionic/cli-utils<span style=”mso-spacerun: yes;”> </span>: 1.19.3</span>/p>
<p class=”MsoNormal” style=”margin-bottom: .0001pt;”><pionic (Ionic CLI) : 3.20.1 /p></p>
<p class=”MsoNormal” style=”margin-bottom: .0001pt;”><span lang=”SK”><p local packages:</span>/p></p>
<span lang=”SK” style=”font-size: 11.0pt; line-height: 107%; font-family: ‘Calibri’,sans-serif; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: ‘Times New Roman’; mso-bidi-theme-font: minor-bidi; mso-ansi-language: SK; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;”><span style=”font-family: Georgia, ‘Times New Roman’, ‘Bitstream Charter’, Times, serif; font-size: 16px;”><p</span>@ionic/app-scripts : 3.2.2</span>/p><span lang=”SK” style=”font-size: 11.0pt; line-height: 107%; font-family: ‘Calibri’,sans-serif; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: ‘Times New Roman’; mso-bidi-theme-font: minor-bidi; mso-ansi-language: SK; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;”><span style=”font-family: Georgia, ‘Times New Roman’, ‘Bitstream Charter’, Times, serif; font-size: 16px;”><p </span>Ionic Framework : ionic-angular 3.9.5</span>/p>
<p class=”MsoNormal” style=”margin-bottom: .0001pt;”><span lang=”SK”><p System:</span>/p></p>
<p Node : v10.16.2/p><p npm : 6.9.0/p>
<p OS : Windows 10/p>
<p class=”MsoNormal”><span lang=”SK”><pMisc:</span>/p></p>
<p class=”MsoNormal”><span lang=”SK”><pbackend : pro</span>/p></p>August 12, 2019 at 11:11 am #31016I have this but I dont see cordova
cli packages: (C:\Users\Tomas Torok\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.3
ionic (Ionic CLI) : 3.20.1
local packages:
@ionic/app-scripts : 3.2.2
Ionic Framework : ionic-angular 3.9.5
System:
Node : v10.16.2
npm : 6.9.0
OS : Windows 10
Misc:
backend : pro
August 12, 2019 at 11:14 am #31018and for cordova I see this
C:\Users\Tomas Torok\Documents\ionic\school\mentorinsider> cordova -v
9.0.0 ([email protected])
- AuthorPosts
You must be logged in to reply to this topic.