René's URL Explorer Experiment


Title: Dependency issue? Subsequent variable declarations must have the same type. · Issue #3541 · ionic-team/ionic-cli · GitHub

Open Graph Title: Dependency issue? Subsequent variable declarations must have the same type. · Issue #3541 · ionic-team/ionic-cli

X Title: Dependency issue? Subsequent variable declarations must have the same type. · Issue #3541 · ionic-team/ionic-cli

Description: Description: After following the "Getting Started" guide for setting up my first app with the sidemenu template, I get a typescript error: [app-scripts] [17:50:26] typescript: node_modules/@types/node/index.d.ts, line: 80 [app-scripts] S...

Open Graph Description: Description: After following the "Getting Started" guide for setting up my first app with the sidemenu template, I get a typescript error: [app-scripts] [17:50:26] typescript: node_modules/@types/n...

X Description: Description: After following the "Getting Started" guide for setting up my first app with the sidemenu template, I get a typescript error: [app-scripts] [17:50:26] typescript: node_module...

Opengraph URL: https://github.com/ionic-team/ionic-cli/issues/3541

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dependency issue? Subsequent variable declarations must have the same type.","articleBody":"**Description:**\r\n\u003c!-- Please describe the problem you're having. -->\r\n\r\nAfter following the \"Getting Started\" guide for setting up my first app with the sidemenu template, I get a typescript error:\r\n\r\n```\r\n[app-scripts] [17:50:26]  typescript: node_modules/@types/node/index.d.ts, line: 80 \r\n[app-scripts]             Subsequent variable declarations must have the same type. Variable 'process' must be of type '{ env: { [key: \r\n[app-scripts]             string]: string; }; }', but here has type 'Process'. \r\n[app-scripts]       L79:  interface NodeRequire extends NodeRequireFunction {\r\n[app-scripts]       L80:      resolve(id: string): string;\r\n[app-scripts]       L81:      cache: any;\r\n```\r\n\r\n**Steps to Reproduce:**\r\n\u003c!--\r\nIf applicable, the best way to illustrate the bug is with an example repo.\r\nOtherwise, please describe in detail how to replicate the issue.\r\n-->\r\n\r\nFollowing the steps as listed in the [CLI getting started](https://ionicframework.com/getting-started#cli) section, except using `npx`:\r\n\r\n```\r\nnpx ionic start myApp sidemenu\r\ncd myApp\r\nnpm install --save-dev ionic\r\n```\r\n\r\nI then edit the `package.json` to add a run script:\r\n\r\n```\r\n\"serve\": \"ionic serve -c\"\r\n```\r\n\r\n**Output:**\r\n\u003c!--\r\nIf applicable, please post the full output of the command that errored.\r\nRemember to run commands with the --verbose flag for debug statements.\r\n-->\r\n\r\nThe following logs are produced:\r\n\r\n```\r\n> ionic-app-scripts serve --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser\r\n[app-scripts] [17:50:19]  ionic-app-scripts 3.2.0 \r\n[app-scripts] [17:50:19]  watch started ... \r\n[app-scripts] [17:50:19]  build dev started ... \r\n[app-scripts] [17:50:19]  clean started ... \r\n[app-scripts] [17:50:19]  clean finished in 1 ms \r\n[app-scripts] [17:50:19]  copy started ... \r\n[app-scripts] [17:50:19]  deeplinks started ... \r\n[app-scripts] [17:50:19]  deeplinks finished in 43 ms \r\n[app-scripts] [17:50:19]  transpile started ... \r\n[app-scripts] [17:50:26]  typescript: node_modules/@types/node/index.d.ts, line: 80 \r\n[app-scripts]             Subsequent variable declarations must have the same type. Variable 'process' must be of type '{ env: { [key: \r\n[app-scripts]             string]: string; }; }', but here has type 'Process'. \r\n[app-scripts]       L79:  interface NodeRequire extends NodeRequireFunction {\r\n[app-scripts]       L80:      resolve(id: string): string;\r\n[app-scripts]       L81:      cache: any;\r\n\r\n[INFO] Development server running!\r\n# snip #\r\n```\r\n\r\n**My `ionic info`:**\r\n\u003c!--\r\nPost the output of running `ionic info` (within your project, if applicable)\r\nbelow. `ionic info` is a CLI command that prints out environment information.\r\n-->\r\n\r\n```\r\nIonic:\r\n\r\n   ionic (Ionic CLI)  : 4.1.1\r\n   Ionic Framework    : ionic-angular 3.9.2\r\n   @ionic/app-scripts : 3.2.0\r\n\r\nCordova:\r\n\r\n   cordova (Cordova CLI) : not installed\r\n   Cordova Platforms     : not available\r\n   Cordova Plugins       : not available\r\n\r\nSystem:\r\n\r\n   NodeJS : v8.1.2 (/Users/saibotsivad/.nvm/versions/node/v8.1.2/bin/node)\r\n   npm    : 6.4.0\r\n   OS     : macOS High Sierra\r\n```\r\n\r\n\r\n**Other Information:**\r\n\u003c!--\r\ne.g. stacktraces, related issues, suggestions how to fix, stackoverflow links,\r\nforum links, etc\r\n-->\r\n\r\nI am not yet familier with TypeScript, so I went digging and found that [@types/node](https://www.npmjs.com/package/@types/node) is at 10.9.1 but then `npm ls @types/node` shows what's being used in the ionic project is 6.0.116, which seems really old.\r\n\r\nI couldn't quite track down the dependency tree to see where those would get updated, so maybe this outdated dependency is a documented issue already?\r\n\r\nStill, having the \"Getting Started\" demo app break is probably not great 😆 ","author":{"url":"https://github.com/saibotsivad","@type":"Person","name":"saibotsivad"},"datePublished":"2018-08-24T23:05:08Z","url":"https://github.com/ionic-team/ionic-cli/issues/3541"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9ae2c476-b57c-22af-7d4e-7659cfab2a12
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD6FC:3B3600:1275C7E:194E288:6AFB6D13
html-safe-noncea10b72688a83c22d41592369188e4e9bb1e0a7dd01c311c373eace5f6f7d1978
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkZDOjNCMzYwMDoxMjc1QzdFOjE5NEUyODg6NkFGQjZEMTMiLCJ2aXNpdG9yX2lkIjoiNTMzMTcyMDU5NzE1MzczODAwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac736d44490f79ca8f31d9c6c07c845b436a8d7fd20c2c4e181b5480a8b257688b
hovercard-subject-tagissue:353953499
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ionic-team/ionic-cli/3541/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5adc909f0a5ae22fd9b814ea3b01445c71a735cbf815511a04acd4755c3cf675/ionic-team/ionic-cli/issues/3541
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5adc909f0a5ae22fd9b814ea3b01445c71a735cbf815511a04acd4755c3cf675/ionic-team/ionic-cli/issues/3541
og:image:altDescription: After following the "Getting Started" guide for setting up my first app with the sidemenu template, I get a typescript error: [app-scripts] [17:50:26] typescript: node_modules/@types/n...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesaibotsivad
hostnamegithub.com
expected-hostnamegithub.com
Nonecca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700
turbo-cache-controlno-preview
go-importgithub.com/ionic-team/ionic-cli git https://github.com/ionic-team/ionic-cli.git
octolytics-dimension-user_id3171503
octolytics-dimension-user_loginionic-team
octolytics-dimension-repository_id14562056
octolytics-dimension-repository_nwoionic-team/ionic-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14562056
octolytics-dimension-repository_network_root_nwoionic-team/ionic-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release88808b1fae5ab8a526a73e7ce5542a10eb9d6971
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/ionic-team/ionic-cli/issues/3541#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fionic-team%2Fionic-cli%2Fissues%2F3541
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fionic-team%2Fionic-cli%2Fissues%2F3541
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ionic-team%2Fionic-cli
Reloadhttps://github.com/ionic-team/ionic-cli/issues/3541
Reloadhttps://github.com/ionic-team/ionic-cli/issues/3541
Reloadhttps://github.com/ionic-team/ionic-cli/issues/3541
ionic-teamhttps://github.com/ionic-team
ionic-clihttps://github.com/ionic-team/ionic-cli
Codehttps://github.com/ionic-team/ionic-cli
Issues344 (344)https://github.com/ionic-team/ionic-cli/issues
Pull requests23 (23)https://github.com/ionic-team/ionic-cli/pulls
Actionshttps://github.com/ionic-team/ionic-cli/actions
Wikihttps://github.com/ionic-team/ionic-cli/wiki
Security and qualityhttps://github.com/ionic-team/ionic-cli/security
Insightshttps://github.com/ionic-team/ionic-cli/pulse
https://github.com/ionic-team/ionic-cli
New issuehttps://github.com/login?return_to=https://github.com/ionic-team/ionic-cli/issues/3541
New issuehttps://github.com/login?return_to=https://github.com/ionic-team/ionic-cli/issues/3541
Dependency issue? Subsequent variable declarations must have the same type.https://github.com/ionic-team/ionic-cli/issues/3541#top
bughttps://github.com/ionic-team/ionic-cli/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/saibotsivad
saibotsivadhttps://github.com/saibotsivad
on Aug 24, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issue-353953499
CLI getting startedhttps://ionicframework.com/getting-started#cli
@types/nodehttps://www.npmjs.com/package/@types/node
ionitron-bothttps://github.com/apps/ionitron-bot
triagehttps://github.com/ionic-team/ionic-cli/issues?q=state%3Aopen%20label%3A%22triage%22
on Aug 24, 2018https://github.com/ionic-team/ionic-cli/issues/3541#event-1808698037
https://github.com/saibotsivad
saibotsivadhttps://github.com/saibotsivad
on Aug 24, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-415905581
https://github.com/rdlabo
rdlabohttps://github.com/rdlabo
on Aug 25, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-415927864
https://github.com/saibotsivad
saibotsivadhttps://github.com/saibotsivad
on Aug 25, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-415932288
https://github.com/rdlabo
rdlabohttps://github.com/rdlabo
on Aug 25, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-415934502
#3300https://github.com/ionic-team/ionic-cli/issues/3300
https://github.com/saibotsivad
saibotsivadhttps://github.com/saibotsivad
on Aug 25, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-415934643
https://github.com/saibotsivad
saibotsivadhttps://github.com/saibotsivad
on Aug 25, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-415936085
rdlabohttps://github.com/rdlabo
on Aug 28, 2018https://github.com/ionic-team/ionic-cli/issues/3541#event-1811914801
feat(environments): add process declaration (#420)https://github.com/ionic-team/starters/commit/8cf0f0618dedf08e3dc172ea8d886451972e1da4
#420https://github.com/ionic-team/starters/pull/420
8cf0f06https://github.com/ionic-team/starters/commit/8cf0f0618dedf08e3dc172ea8d886451972e1da4
https://github.com/mityaika
mityaikahttps://github.com/mityaika
on Aug 28, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-416434692
https://github.com/kieranbarlow
kieranbarlowhttps://github.com/kieranbarlow
on Aug 28, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-416512806
https://github.com/mityaika
mityaikahttps://github.com/mityaika
on Aug 28, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-416566434
http://localhost:8100/ionic-labhttp://localhost:8100/ionic-lab
imhoffdhttps://github.com/imhoffd
bughttps://github.com/ionic-team/ionic-cli/issues?q=state%3Aopen%20label%3A%22bug%22
on Aug 28, 2018https://github.com/ionic-team/ionic-cli/issues/3541#event-1813797572
ionitron-bothttps://github.com/apps/ionitron-bot
triagehttps://github.com/ionic-team/ionic-cli/issues?q=state%3Aopen%20label%3A%22triage%22
on Aug 28, 2018https://github.com/ionic-team/ionic-cli/issues/3541#event-1813797690
https://github.com/Dellos7
Dellos7https://github.com/Dellos7
on Aug 29, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-417000154
Capacitorhttps://github.com/ionic-team/capacitor
https://github.com/imhoffd
imhoffdhttps://github.com/imhoffd
on Aug 29, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-417023321
src/declarations.d.ts filehttps://github.com/ionic-team/starters/blob/master/ionic-angular/base/src/declarations.d.ts
imhoffdhttps://github.com/imhoffd
completedhttps://github.com/ionic-team/ionic-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
76da165https://github.com/ionic-team/starters/commit/76da16527ffce03d2e756c44849644eb119c9dcf
on Aug 29, 2018https://github.com/ionic-team/ionic-cli/issues/3541#event-1816769958
imhoffdhttps://github.com/imhoffd
on Aug 29, 2018https://github.com/ionic-team/ionic-cli/issues/3541#event-1816776129
docs(readme): add note about existing declarationhttps://github.com/ionic-team/ionic-app-scripts/commit/50667cc8e20187ce29f609bf9968c8fbd6cc44bb
50667cchttps://github.com/ionic-team/ionic-app-scripts/commit/50667cc8e20187ce29f609bf9968c8fbd6cc44bb
https://github.com/imhoffd
imhoffdhttps://github.com/imhoffd
on Aug 29, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-417117639
Environmentshttps://github.com/ionic-team/ionic-app-scripts#environments
herehttps://github.com/ionic-team/ionic-app-scripts#environments
these docshttps://www.typescriptlang.org/docs/handbook/tsconfig-json.html#types-typeroots-and-types
these docshttps://www.typescriptlang.org/docs/handbook/tsconfig-json.html#types-typeroots-and-types
@nphyatthttps://github.com/nphyatt
https://github.com/saibotsivad
saibotsivadhttps://github.com/saibotsivad
on Aug 30, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-417175407
https://github.com/Dellos7
Dellos7https://github.com/Dellos7
on Aug 30, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-417492525
https://github.com/luiscarlospando
luiscarlospandohttps://github.com/luiscarlospando
on Sep 4, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-418506771
https://github.com/kyleabens
kyleabenshttps://github.com/kyleabens
on Sep 26, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-424570257
https://github.com/kyleabens
kyleabenshttps://github.com/kyleabens
on Oct 10, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-428395857
@saibotsivadhttps://github.com/saibotsivad
https://github.com/saibotsivad
saibotsivadhttps://github.com/saibotsivad
on Oct 10, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-428589907
linkhttps://github.com/saibotsivad/fiddle-ionic-demo/blob/92d497b6fac9de47618670fe0f3b51b0bf8f2bab/rss-friends/tsconfig.json#L15
https://github.com/giovannipds
giovannipdshttps://github.com/giovannipds
on Oct 31, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-434824073
https://github.com/giovannipds
giovannipdshttps://github.com/giovannipds
on Oct 31, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-434855001
https://github.com/d1sco
d1scohttps://github.com/d1sco
on Nov 6, 2018https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-436171084
trsrmhttps://github.com/trsrm
on Jan 2, 2019https://github.com/ionic-team/ionic-cli/issues/3541#event-2050601147
Update to 3.2.1 from upstream/master (#1)https://github.com/powwowinc/ionic-app-scripts-tiny/commit/664d7b9ef921b5c074b19904eca44b85abe627c7
#1https://github.com/powwowinc/ionic-app-scripts-tiny/pull/1
664d7b9https://github.com/powwowinc/ionic-app-scripts-tiny/commit/664d7b9ef921b5c074b19904eca44b85abe627c7
https://github.com/RaedShari
RaedSharihttps://github.com/RaedShari
on Dec 19, 2020https://github.com/ionic-team/ionic-cli/issues/3541#issuecomment-748462631
wand1252https://github.com/wand1252
on Aug 31, 2022https://github.com/ionic-team/ionic-cli/issues/3541#event-7300441850
fix(ionic-angular): remove process declarationhttps://github.com/wand1252/starters-angular-ionic-and-node/commit/8c3c0e0519d2ddb8328e9fd23efb1ee37210c003
8c3c0e0https://github.com/wand1252/starters-angular-ionic-and-node/commit/8c3c0e0519d2ddb8328e9fd23efb1ee37210c003
Sign up for freehttps://github.com/signup?return_to=https://github.com/ionic-team/ionic-cli/issues/3541
Sign in to commenthttps://github.com/login?return_to=https://github.com/ionic-team/ionic-cli/issues/3541
bughttps://github.com/ionic-team/ionic-cli/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.