Title: Resolution of this package as ESM is broken due to missing package.json in esm output · Issue #269 · Azure/AppConfiguration-JavaScriptProvider · GitHub
Open Graph Title: Resolution of this package as ESM is broken due to missing package.json in esm output · Issue #269 · Azure/AppConfiguration-JavaScriptProvider
X Title: Resolution of this package as ESM is broken due to missing package.json in esm output · Issue #269 · Azure/AppConfiguration-JavaScriptProvider
Description: NodeJS is resolving this package as CommonJS because a package.json file with "type": "module" is missing from the esm output. Here is the error I am getting: SyntaxError: Named export 'LabelFilter' not found. The requested module '@azur...
Open Graph Description: NodeJS is resolving this package as CommonJS because a package.json file with "type": "module" is missing from the esm output. Here is the error I am getting: SyntaxError: Named export 'LabelFilter...
X Description: NodeJS is resolving this package as CommonJS because a package.json file with "type": "module" is missing from the esm output. Here is the error I am getting: SyntaxError: Named...
Opengraph URL: https://github.com/Azure/AppConfiguration-JavaScriptProvider/issues/269
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Resolution of this package as ESM is broken due to missing package.json in esm output","articleBody":"NodeJS is resolving this package as CommonJS because a package.json file with `\"type\": \"module\"` is missing from the esm output.\nHere is the error I am getting:\n```\nSyntaxError: Named export 'LabelFilter' not found. The requested module '@azure/app-configuration-provider' is a CommonJS module, which may not support all module.exports as named exports.\n CommonJS modules can always be imported via the default export, for example using:\n\n import pkg from '@azure/app-configuration-provider';\n const { LabelFilter, load } = pkg;\n\n at ModuleJob._instantiate (node:internal/modules/esm/module_job:220:21)\n at async ModuleJob.run (node:internal/modules/esm/module_job:321:5)\n at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:644:26)\n at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)\n\n Node.js v22.17.1\n```\nIf I add a package.json to the dist/esm folder with the contents below, then the error is fixed:\n```json\n{\n \"type\": \"module\"\n}\n```\n\nI copied this from the @azure/app-configuration package's esm folder.","author":{"url":"https://github.com/ajaffie","@type":"Person","name":"ajaffie"},"datePublished":"2026-01-29T16:58:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/269/AppConfiguration-JavaScriptProvider/issues/269"}
| 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:2e2c890d-e540-bdf3-7d28-03ab0b9bfa11 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D23C:92A4B:426AC:5C21D:698E1120 |
| html-safe-nonce | de343db181845ad65594cf9e4efb12ad7cf35a8003687e9e52d12f21b5093271 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjNDOjkyQTRCOjQyNkFDOjVDMjFEOjY5OEUxMTIwIiwidmlzaXRvcl9pZCI6IjE4NTUwOTExMTUzMDE5MzMzNDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 89ba28a934abb186ed5a1bfc167aa7d70657de2408f3c5adc220b473d35ab3f8 |
| hovercard-subject-tag | issue:3871676438 |
| 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/Azure/AppConfiguration-JavaScriptProvider/269/issue_layout |
| twitter:image | https://opengraph.githubassets.com/52e51f7f9831a5d3645d8f921b30284fcabfd5b81ca23a1a77983a5b2124f800/Azure/AppConfiguration-JavaScriptProvider/issues/269 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/52e51f7f9831a5d3645d8f921b30284fcabfd5b81ca23a1a77983a5b2124f800/Azure/AppConfiguration-JavaScriptProvider/issues/269 |
| og:image:alt | NodeJS is resolving this package as CommonJS because a package.json file with "type": "module" is missing from the esm output. Here is the error I am getting: SyntaxError: Named export 'LabelFilter... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ajaffie |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdf74c91c9ac187cc5cd7b14d4af2d6ef3e18136d002f5d36253f8538e97ee4c |
| turbo-cache-control | no-preview |
| go-import | github.com/Azure/AppConfiguration-JavaScriptProvider git https://github.com/Azure/AppConfiguration-JavaScriptProvider.git |
| octolytics-dimension-user_id | 6844498 |
| octolytics-dimension-user_login | Azure |
| octolytics-dimension-repository_id | 688057518 |
| octolytics-dimension-repository_nwo | Azure/AppConfiguration-JavaScriptProvider |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 688057518 |
| octolytics-dimension-repository_network_root_nwo | Azure/AppConfiguration-JavaScriptProvider |
| 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 | 1a5a3e7bbfb3486980e340c242368684156fba87 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width