Title: Give an error on using '--module' with a non-module input file · Issue #9082 · microsoft/TypeScript · GitHub
Open Graph Title: Give an error on using '--module' with a non-module input file · Issue #9082 · microsoft/TypeScript
X Title: Give an error on using '--module' with a non-module input file · Issue #9082 · microsoft/TypeScript
Description: Currently, if a user doesn't have an import/export statement, output usually messed up and users are left wondering how to fix them. We should give an error on using '--module' with a non-module input file. Then give users an option like...
Open Graph Description: Currently, if a user doesn't have an import/export statement, output usually messed up and users are left wondering how to fix them. We should give an error on using '--module' with a non-module in...
X Description: Currently, if a user doesn't have an import/export statement, output usually messed up and users are left wondering how to fix them. We should give an error on using '--module' with a n...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/9082
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Give an error on using '--module' with a non-module input file","articleBody":"Currently, if a user doesn't have an import/export statement, output usually messed up and users are left wondering how to fix them. We should give an error on using '--module' with a non-module input file.\n\nThen give users an option like `--allowScriptInputs` or `--allowGlobalInputs` if they really know what they're doing.\n\nOne thing to keep in mind is that you don't want to create errors in the file itself, as it would be incredibly annoying to constantly see this error while typing. I would think you would only see it at emit time.\n","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2016-06-10T17:50:59Z","url":"https://github.com/microsoft/TypeScript/issues/9082"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:b0ee9b5c-2921-feef-b917-96ccd1be492c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E75E:306EDF:663FAE:8CA596:6B04A5CF |
| html-safe-nonce | f21388506b1f95a63d76870f3703f52e874631888d2003eb424fc98f3bf7f83f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzVFOjMwNkVERjo2NjNGQUU6OENBNTk2OjZCMDRBNUNGIiwidmlzaXRvcl9pZCI6IjIzNTk0OTc3NDgyMjA1MTk4ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 225e66b40a37a5e6d1912eb1fb125d12c85278d7729b36ecd1e439ad1c221e74 |
| hovercard-subject-tag | issue:159687344 |
| 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/microsoft/TypeScript/9082/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2520d25f33b9b813b9cea994869c461c6e16e56021f577eeccdc0a90f79ef291/microsoft/TypeScript/issues/9082 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2520d25f33b9b813b9cea994869c461c6e16e56021f577eeccdc0a90f79ef291/microsoft/TypeScript/issues/9082 |
| og:image:alt | Currently, if a user doesn't have an import/export statement, output usually messed up and users are left wondering how to fix them. We should give an error on using '--module' with a non-module in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DanielRosenwasser |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| 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 | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width