arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io
No errors for ESM module resolution, while errors are expected
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
The lib: https://www.npmjs.com/package/@microlabs/otel-cf-workers
The analysis: https://arethetypeswrong.github.io/?p=%40microlabs%2Fotel-cf-workers%401.0.0-rc.23
Shows all is ok, however, if we navigate to the lib, we'll clearly see incorrect import statement at https://github.com/evanderkoogh/otel-cf-workers/blob/v1.0.0-rc.23/src/instrumentation/env.ts#L6
I have also checked `dist` in the npm package, the same import.
It fails the build locally trying to use this lib in ESM project.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the analysis for @microlabs/otel-cf-workers@1.0.0-rc.23 and compare it with the import in src/instrumentation/env.ts at line 6 and the corresponding dist output. Trace why the ESM resolution problem is accepted, then verify that this package produces the expected error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100