René's URL Explorer Experiment


Title: Package.json conditional exports points to non-existent files · Issue #163 · developit/unfetch · GitHub

Open Graph Title: Package.json conditional exports points to non-existent files · Issue #163 · developit/unfetch

X Title: Package.json conditional exports points to non-existent files · Issue #163 · developit/unfetch

Description: The conditional exports in package.json points to files which does not exist: unfetch/package.json Lines 16 to 20 in ee5810e "exports": { ".": { "import": "./index.mjs", "default": "./index.js" }, This causes the following errors when im...

Open Graph Description: The conditional exports in package.json points to files which does not exist: unfetch/package.json Lines 16 to 20 in ee5810e "exports": { ".": { "import": "./index.mjs", "default": "./index.js" }, ...

X Description: The conditional exports in package.json points to files which does not exist: unfetch/package.json Lines 16 to 20 in ee5810e "exports": { ".": { "import": "./inde...

Opengraph URL: https://github.com/developit/unfetch/issues/163

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Package.json conditional exports points to non-existent files","articleBody":"The conditional exports in package.json points to files which does not exist:\r\n\r\nhttps://github.com/developit/unfetch/blob/ee5810e7f9cd769677984b159d7e250adf4611b9/package.json#L16-L20\r\n\r\nThis causes the following errors when importing `unfetch` with typescript:\r\n\r\n```\r\nCannot find module 'unfetch' or its corresponding type declarations.ts(2307)\r\n```\r\n\r\nAlso, if you're declaring conditional exports and have type declarations (d.ts) in different location, I think you need to add **\"types\"** as the first export condition (see: https://www.typescriptlang.org/docs/handbook/esm-node.html, and https://github.com/microsoft/TypeScript/issues/48235)\r\n\r\nTherefore, I believe the correct exports should've been:\r\n```json\r\n  \"exports\": {\r\n    \".\": {\r\n      \"types\": \"./src/index.d.ts\",\r\n      \"import\": \"./dist/unfetch.mjs\",\r\n      \"default\": \"./dist/unfetch.js\"\r\n    },\r\n```\r\n\r\n---\r\nFWIW, I'm using `Typescript 4.9` with `moduleResolution\": \"NodeNext\"`","author":{"url":"https://github.com/IronGeek","@type":"Person","name":"IronGeek"},"datePublished":"2023-02-05T09:08:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/163/unfetch/issues/163"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:799b3217-7469-2a2e-1f7e-09dc3d5a6ed7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC78E:2938DD:364ABD6:4817F9E:6964B253
html-safe-nonce9e7212d9466a7776350475cb9539d51b1e025a06d6c7f2414c852275a7cdd21f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzhFOjI5MzhERDozNjRBQkQ2OjQ4MTdGOUU6Njk2NEIyNTMiLCJ2aXNpdG9yX2lkIjoiNDY3MjU2Mjk3MjU0ODQ0NDc1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5add0749db220e2820268797ff741f19935953342f67f2f0af8b1b1311135664
hovercard-subject-tagissue:1571355284
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/developit/unfetch/163/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d48312889b356a963dbcc6937bfa5156dd5607814636cfcc0c50c174eb3dfb67/developit/unfetch/issues/163
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d48312889b356a963dbcc6937bfa5156dd5607814636cfcc0c50c174eb3dfb67/developit/unfetch/issues/163
og:image:altThe conditional exports in package.json points to files which does not exist: unfetch/package.json Lines 16 to 20 in ee5810e "exports": { ".": { "import": "./index.mjs", "default": "./index.js" }, ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameIronGeek
hostnamegithub.com
expected-hostnamegithub.com
None15579c46431b7fd25941c3b09010f74fd1890c7a35226839bbbf40ce70fb3057
turbo-cache-controlno-preview
go-importgithub.com/developit/unfetch git https://github.com/developit/unfetch.git
octolytics-dimension-user_id105127
octolytics-dimension-user_logindevelopit
octolytics-dimension-repository_id82766832
octolytics-dimension-repository_nwodevelopit/unfetch
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id82766832
octolytics-dimension-repository_network_root_nwodevelopit/unfetch
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
release499abb347cb197601d399c346cfeb4b3fa135d5c
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/developit/unfetch/issues/163#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevelopit%2Funfetch%2Fissues%2F163
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevelopit%2Funfetch%2Fissues%2F163
Sign up https://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=developit%2Funfetch
Reloadhttps://github.com/developit/unfetch/issues/163
Reloadhttps://github.com/developit/unfetch/issues/163
Reloadhttps://github.com/developit/unfetch/issues/163
developit https://github.com/developit
unfetchhttps://github.com/developit/unfetch
Notifications https://github.com/login?return_to=%2Fdevelopit%2Funfetch
Fork 202 https://github.com/login?return_to=%2Fdevelopit%2Funfetch
Star 5.7k https://github.com/login?return_to=%2Fdevelopit%2Funfetch
Code https://github.com/developit/unfetch
Issues 20 https://github.com/developit/unfetch/issues
Pull requests 10 https://github.com/developit/unfetch/pulls
Actions https://github.com/developit/unfetch/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/developit/unfetch/security
Please reload this pagehttps://github.com/developit/unfetch/issues/163
Insights https://github.com/developit/unfetch/pulse
Code https://github.com/developit/unfetch
Issues https://github.com/developit/unfetch/issues
Pull requests https://github.com/developit/unfetch/pulls
Actions https://github.com/developit/unfetch/actions
Security https://github.com/developit/unfetch/security
Insights https://github.com/developit/unfetch/pulse
New issuehttps://github.com/login?return_to=https://github.com/developit/unfetch/issues/163
New issuehttps://github.com/login?return_to=https://github.com/developit/unfetch/issues/163
Package.json conditional exports points to non-existent fileshttps://github.com/developit/unfetch/issues/163#top
https://github.com/IronGeek
https://github.com/IronGeek
IronGeekhttps://github.com/IronGeek
on Feb 5, 2023https://github.com/developit/unfetch/issues/163#issue-1571355284
unfetch/package.jsonhttps://github.com/developit/unfetch/blob/ee5810e7f9cd769677984b159d7e250adf4611b9/package.json#L16-L20
ee5810ehttps://github.com/developit/unfetch/commit/ee5810e7f9cd769677984b159d7e250adf4611b9
https://www.typescriptlang.org/docs/handbook/esm-node.htmlhttps://www.typescriptlang.org/docs/handbook/esm-node.html
microsoft/TypeScript#48235https://github.com/microsoft/TypeScript/issues/48235
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.