Skip to content

Conversation

OliverDudgeon
Copy link

How did you fix the issue?

I've added the missing types fields to the exports in package.json. When using "moduleResolution": "bundler" typescript, currently raises issues like (#5760):

Could not find a declaration file for module 'ketcher-standalone'. '/Users/oliver/codetemp/im/squonk-frontend/apps/data-manager-ui/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/ketcher-standalone/dist/main.js' implicitly has an 'any' type.
  There are types at '/Users/oliver/codetemp/im/squonk-frontend/apps/data-manager-ui/node_modules/ketcher-standalone/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'ketcher-standalone' library may need to update its package.json or typings.ts(7016)

Now when Typescript uses the exports field, it is able to find the types correctly.

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.

1 participant