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

class-transformer package is missing as npm dependency #63

Open
AlexRies opened this issue Apr 16, 2021 · 1 comment
Open

class-transformer package is missing as npm dependency #63

AlexRies opened this issue Apr 16, 2021 · 1 comment

Comments

@AlexRies
Copy link

Steps to reproduce:

  • Remove node_modules
  • Do npm install
  • Run ts compile

Observed error:

node_modules/class-validator-jsonschema/build/options.d.ts:1:73 - error TS2307: Cannot find module 'class-transformer/types/MetadataStorage' or its corresponding type declarations.

1 import type { MetadataStorage as ClassTransformerMetadataStorage } from 'class-transformer/types/MetadataStorage';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[9:13:38 AM] Found 1 error. Watching for file changes.

@brianrand
Copy link

you can solve this using node version 16 but I'd like to be able to use this package on node 14 since it's the current lts.

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

No branches or pull requests

2 participants