Skip to content

add exports.types entry#32

Merged
sindresorhus merged 1 commit intosindresorhus:mainfrom
magicdawn:patch-1
Oct 22, 2023
Merged

add exports.types entry#32
sindresorhus merged 1 commit intosindresorhus:mainfrom
magicdawn:patch-1

Conversation

@magicdawn
Copy link
Copy Markdown
Contributor

type index.d.ts not resolved with moduleResoltion: Bundler.

"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Bundler",

image

Could not find a declaration file for module 'log-symbols'. '/Users/magicdawn/projects/vbox/node_modules/.pnpm/log-symbols@5.1.0/node_modules/log-symbols/browser.js' implicitly has an 'any' type.
  There are types at '/Users/magicdawn/projects/vbox/node_modules/log-symbols/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'log-symbols' library may need to update its package.json or typings.ts(7016)

add exports.types to package.json entry fix this.

@sindresorhus sindresorhus merged commit d547f18 into sindresorhus:main Oct 22, 2023
kytta pushed a commit to kytta/nanosymbols that referenced this pull request Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants