Salam sir inquirer tw string Hi value deta Hena Lkn Agr Hmen Number me Chaie hw Value tw kia Krenge? Q k pehle wali Update me Hm Type me number de skte the ab Nai De pa rhe.
Dear, isi video me mene chapter bnaya hua hay number k name se time stamp hay us ka 30:36 wo aap dekh lein us tarike se aap number me value le sktay hain. 😇 Thanks for watching our videos
I have followed step to step according to your video, but why isnt it working??? this is my code: let nTotal: number = 0 import { input } from '@inquirer/prompts'; let hName = await input({ message: "What is her name?" }); if (hName = "Siddiqui") { nTotal + 7 } the error in cmd: mine.ts:4:13 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher. 4 let hName = await input ({ ~~~~~ node_modules/@inquirer/type/dist/cjs/types/inquirer.d.ts:2:8 - error TS1259: Module '"D:/thumbnail/GIAC/myLikes/node_modules/@types/mute-stream/index"' can only be default-imported using the 'esModuleInterop' flag 2 import MuteStream from 'mute-stream'; ~~~~~~~~~~ node_modules/@types/mute-stream/index.d.ts:30:1 30 export = MuteStream; ~~~~~~~~~~~~~~~~~~~~ This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. Found 2 errors in 2 files. Errors Files 1 mine.ts:4 1 node_modules/@inquirer/type/dist/cjs/types/inquirer.d.ts:2 D:\thumbnail\GIAC\myLikes>tsc mine.ts && node main.js mine.ts:4:13 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher. 4 let hName = await input({ ~~~~~ node_modules/@inquirer/type/dist/cjs/types/inquirer.d.ts:2:8 - error TS1259: Module '"D:/thumbnail/GIAC/myLikes/node_modules/@types/mute-stream/index"' can only be default-imported using the 'esModuleInterop' flag 2 import MuteStream from 'mute-stream'; ~~~~~~~~~~ node_modules/@types/mute-stream/index.d.ts:30:1 30 export = MuteStream; ~~~~~~~~~~~~~~~~~~~~ This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
Thanks for watching our videos 😇 aap ne environment set kia hay ? if yes then I do suggest k ek dafa dobara video view karain and sath sath steps follow karain agar phir bhi ye error aata hay then send us your error at email itmatepk@gmail.com, we'll try to resolve your error as soon as possible
Sir update Inquirer se kasam sy calculator be nhi banta help kardo plz
Salam sir inquirer tw string Hi value deta Hena Lkn Agr Hmen Number me Chaie hw Value tw kia Krenge?
Q k pehle wali Update me Hm Type me number de skte the ab Nai De pa rhe.
Dear, isi video me mene chapter bnaya hua hay number k name se time stamp hay us ka 30:36 wo aap dekh lein us tarike se aap number me value le sktay hain. 😇
Thanks for watching our videos
@@itmatepakistan ok sir thank you.❤️
I have followed step to step according to your video, but why isnt it working???
this is my code:
let nTotal: number = 0
import { input } from '@inquirer/prompts';
let hName = await input({
message: "What is her name?"
});
if (hName = "Siddiqui") {
nTotal + 7 }
the error in cmd:
mine.ts:4:13 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
4 let hName = await input ({
~~~~~
node_modules/@inquirer/type/dist/cjs/types/inquirer.d.ts:2:8 - error TS1259: Module '"D:/thumbnail/GIAC/myLikes/node_modules/@types/mute-stream/index"' can only be default-imported using the 'esModuleInterop' flag
2 import MuteStream from 'mute-stream';
~~~~~~~~~~
node_modules/@types/mute-stream/index.d.ts:30:1
30 export = MuteStream;
~~~~~~~~~~~~~~~~~~~~
This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
Found 2 errors in 2 files.
Errors Files
1 mine.ts:4
1 node_modules/@inquirer/type/dist/cjs/types/inquirer.d.ts:2
D:\thumbnail\GIAC\myLikes>tsc mine.ts && node main.js
mine.ts:4:13 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
4 let hName = await input({
~~~~~
node_modules/@inquirer/type/dist/cjs/types/inquirer.d.ts:2:8 - error TS1259: Module '"D:/thumbnail/GIAC/myLikes/node_modules/@types/mute-stream/index"' can only be default-imported using the 'esModuleInterop' flag
2 import MuteStream from 'mute-stream';
~~~~~~~~~~
node_modules/@types/mute-stream/index.d.ts:30:1
30 export = MuteStream;
~~~~~~~~~~~~~~~~~~~~
This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
Thanks for watching our videos 😇
aap ne environment set kia hay ?
if yes then I do suggest k ek dafa dobara video view karain and sath sath steps follow karain agar phir bhi ye error aata hay then send us your error at email itmatepk@gmail.com, we'll try to resolve your error as soon as possible
Sir update inquirer sy calculator nahi banraha
Sir reply dy dena
Assalamualaikum.
Boss ap apna koi contact number send kar daien .