Missing `types` declaration for exports in rakkasjs@next package.json
See original GitHub issueThe exports defined here are missing the types
field to point typescript to the right location. Without it typescript complains:
Adding "types": "./dist/index.d.ts"
to the top of this field in rakkas’ package.json resolved this issue.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to Declare Missing Types for External Libraries -- newline
Custom Types Declaration#. First, in your tsconfig.json add a directory path to type declarations:.
Read more >New package.json `exports` field not working with TypeScript
json field, called exports , to select and rewrite exported files. Before 13.2, I was importing files from the dist folder of my...
Read more >Support for NodeJS 12.7+ package exports #33079 - GitHub
I am quite literally pointing at the type declaration file with a neon sign and ... Support package.json exports outside of Node #50794....
Read more >Modules: Packages | Node.js v19.3.0 Documentation
Exports sugar; Subpath imports; Subpath patterns; Conditional exports ... A package.json "type" value of "module" tells Node.js to interpret .js files ...
Read more >How to Create a Hybrid NPM Module for ESM and CommonJS.
You read about the package.json type = "module" and exports keywords which will magically make everything work, but they don't work as ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @cyco130! Can confirm it works on
.9
Yes it does. Skip next.8 and try next.9, it should work now.