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
Domain: github.com
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9ae2c476-b57c-22af-7d4e-7659cfab2a12 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6FC:3B3600:1275C7E:194E288:6AFB6D13 |
| html-safe-nonce | a10b72688a83c22d41592369188e4e9bb1e0a7dd01c311c373eace5f6f7d1978 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkZDOjNCMzYwMDoxMjc1QzdFOjE5NEUyODg6NkFGQjZEMTMiLCJ2aXNpdG9yX2lkIjoiNTMzMTcyMDU5NzE1MzczODAwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 736d44490f79ca8f31d9c6c07c845b436a8d7fd20c2c4e181b5480a8b257688b |
| hovercard-subject-tag | issue:353953499 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ionic-team/ionic-cli/3541/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5adc909f0a5ae22fd9b814ea3b01445c71a735cbf815511a04acd4755c3cf675/ionic-team/ionic-cli/issues/3541 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5adc909f0a5ae22fd9b814ea3b01445c71a735cbf815511a04acd4755c3cf675/ionic-team/ionic-cli/issues/3541 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | saibotsivad |
| hostname | github.com |
| expected-hostname | github.com |
| None | cca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700 |
| turbo-cache-control | no-preview |
| go-import | github.com/ionic-team/ionic-cli git https://github.com/ionic-team/ionic-cli.git |
| octolytics-dimension-user_id | 3171503 |
| octolytics-dimension-user_login | ionic-team |
| octolytics-dimension-repository_id | 14562056 |
| octolytics-dimension-repository_nwo | ionic-team/ionic-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14562056 |
| octolytics-dimension-repository_network_root_nwo | ionic-team/ionic-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 88808b1fae5ab8a526a73e7ce5542a10eb9d6971 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width