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

FindOptionsWhere has no exported member #715

Open
idemax opened this issue Apr 27, 2022 · 6 comments
Open

FindOptionsWhere has no exported member #715

idemax opened this issue Apr 27, 2022 · 6 comments

Comments

@idemax
Copy link

idemax commented Apr 27, 2022

I'm trying to npm run tsc -- --project tsconfig.json but I'm facing this error:

node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:1:74 - error TS2305: Module '"typeorm"' has no exported member 'FindOptionsWhere'.

  • node version: v16.14.0
  • npm version: 8.3.1
  • tsc version: Version 4.6.3
  • nestjs-typeorm-paginate: 4.0.0
@idemax
Copy link
Author

idemax commented Apr 27, 2022

my tsconfig.json

{
  "compilerOptions": {
    "module": "commonjs",
    "declaration": true,
    "removeComments": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "allowSyntheticDefaultImports": true,
    "target": "es2017",
    "sourceMap": true,
    "outDir": "./dist",
    "baseUrl": "./",
    "incremental": true,

@idemax
Copy link
Author

idemax commented Apr 27, 2022

@bashleigh found this change from 2 days ago who is basically upgrading the typeorm

7d6faf0

was this intended?

@bashleigh
Copy link
Collaborator

bashleigh commented Apr 28, 2022

it was yes, v4.0.0 was to be used with typeorm ^0.3.6, just seen I've failed to remove the v0.2.* from the peer dep
https://github.com/nestjsx/nestjs-typeorm-paginate/blob/master/package.json#L50
Which is why I released 4.0.0 because I didn't want to confuse people but looks like I have anyway

@crazyoptimist
Copy link

crazyoptimist commented Apr 29, 2022

same issue here. with v4.0.1, typeorm ^0.2.41.
rolling back to v3.2.1 worked for now.

@bashleigh
Copy link
Collaborator

@crazyoptimist still the same with 4.0.1? It should've presented a warning as the peer dependancy doesn't match no?

@crazyoptimist
Copy link

I didn't remember whether it presented the warning msg or not. But apparently, build failed due to the type error. I think it's okay however, typeorm should be updated instead. we will stick to v3.2.1 until we'd update typeorm in the app.

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

3 participants