Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Add missing exports for Partial #1498

Closed
derevnjuk opened this issue Aug 27, 2021 · 1 comment
Closed

[BUG] Add missing exports for Partial #1498

derevnjuk opened this issue Aug 27, 2021 · 1 comment
Assignees

Comments

@derevnjuk
Copy link
Contributor

derevnjuk commented Aug 27, 2021

Information

  • Version: 6.6x
  • Packages: schema

There is no export for Partial in the barrel file. To import that decorator, the user has to import it in such a way (v5.59.x is used):

import { Partial } from '@tsed/schema/lib/decorators/operations/partial';

After upgrade TSeD to v6.6x with the introduction of bundles, it raises the following error:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/decorators/operations/partial' is not defined by "exports" in /Users/****/Projects/nexploit-service/node_modules/@tsed/schema/package.json
    at throwExportsNotFound (internal/modules/esm/resolve.js:285:9)
    at packageExportsResolve (internal/modules/esm/resolve.js:508:3)
    at resolveExports (internal/modules/cjs/loader.js:450:36)
    at Function.Module._findPath (internal/modules/cjs/loader.js:490:31)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:888:27)
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

I suggest going through all files, it might be we can find other orphans)

@Romakita
Copy link
Collaborator

🎉 This issue has been resolved in version 6.64.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants