Comments (3)
Here’s that file in the built package: https://unpkg.com/browse/@microlabs/[email protected]/dist/esm/instrumentation/env.d.ts
It doesn’t have any imports.
from arethetypeswrong.github.io.
Ah, I see you must be looking at the JavaScript: https://unpkg.com/browse/@microlabs/[email protected]/dist/esm/instrumentation/env.js
attw is built under the assumption that most immediate runtime crashes would be caught by other means; the tricky thing is getting the types right when the JS build and .d.ts build are decoupled somehow. So, these JS files are not analyzed for broken imports. Usually what we see is a .js file that works and a .d.ts file that disagrees and implies the existence of a .js file that would be broken.
It’s not totally out of the question to expand this analysis, but I’m not sure it really aligns with the goals of the project. attw is never going to be a substitute for basic runtime validation.
from arethetypeswrong.github.io.
I don't possess some deep knowledge in js/ts modules resolution, sorry if this is off-topic.
I've just read about mandatory extension for ESM resolution, but it relates for pure JS:
https://nodejs.org/api/esm.html#mandatory-file-extensions
So, apologies if this is not relevant for this lib. Please close this ticket if you don't see what can be done here further.
from arethetypeswrong.github.io.
Related Issues (20)
- core/dist/types.d.ts contains triple-slash reference to ts-expose-internals HOT 1
- What to do for missing export = when it's TypeScript's fault (kinda) HOT 2
- Update MissingExportEquals.md for import default = fetch HOT 3
- lodash types are wrong (or lying?) HOT 6
- Specifying @types packages in the web UI is broken
- Trailing `/` exports don’t get detected as wildcards
- ERR_REQUIRE_ESM when upgrading from 0.13.6 to 0.13.8 HOT 2
- Indicate when JS is unanalyzable
- Understand basic UMD modules HOT 1
- Rule for missing default export / completely wrong exports?
- confusing resolution failure HOT 14
- Why are paths with colons unresolvable? HOT 2
- [FEATURE]: Create a badge that says whether or not a package passes this repository's tests HOT 3
- Bug: This is too good
- Conditional exports syntax HOT 1
- Seeking NodeJS + TypeScript Demo Project with CJS and ESM Exports HOT 1
- Incorrectly passing when types missing in package exports HOT 3
- How to make this work with svelte? HOT 17
- Proposal: support publishConfig HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arethetypeswrong.github.io.