question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v1.0.30] Code breaks after upgrade from v1.0.26

See original GitHub issue

Code repo working on v1.0.26 breaks on v1.0.30 with following error.

error: TS2322 [ERROR]: Type 'typeof User' is not assignable to type 'typeof Model'.
  Types of property 'pivot' are incompatible.
    Type 'import("https://deno.land/x/denodb@v1.0.27/lib/model.ts").ModelPivotModels' is not assignable to type 'import("https://deno.land/x/denodb@v1.0.26/lib/model.ts").ModelPivotModels'.
      Index signatures are incompatible.
        Type 'typeof import("https://deno.land/x/denodb@v1.0.27/lib/model-pivot.ts").PivotModel' is not assignable to type 'typeof import("https://deno.land/x/denodb@v1.0.26/lib/model-pivot.ts").PivotModel'.
          Types of property '_pivotsModels' are incompatible.
            Type '{ [modelName: string]: typeof import("https://deno.land/x/denodb@v1.0.27/lib/model.ts").Model; }' is not assignable to type '{ [modelName: string]: typeof import("https://deno.land/x/denodb@v1.0.26/lib/model.ts").Model; }'.
              Index signatures are incompatible.
                Type 'typeof import("https://deno.land/x/denodb@v1.0.27/lib/model.ts").Model' is not assignable to type 'typeof import("https://deno.land/x/denodb@v1.0.26/lib/model.ts").Model'.
                  Types of property 'fields' are incompatible.
                    Type 'import("https://deno.land/x/denodb@v1.0.27/lib/model.ts").ModelFields' is not assignable to type 'import("https://deno.land/x/denodb@v1.0.26/lib/model.ts").ModelFields'.
                      Index signatures are incompatible.
                        Type 'import("https://deno.land/x/denodb@v1.0.27/lib/data-types.ts").FieldType' is not assignable to type 'import("https://deno.land/x/denodb@v1.0.26/lib/data-types.ts").FieldType'.
                          Type 'FieldProps' is not assignable to type 'FieldType'.
db.link([User]);
         ~~~~
    at file:///home/mb/my/career/deno/denodb/min-repo/src/models.ts:21:10

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
eveningkidcommented, Apr 20, 2021

I was starting to think I was going crazy!

Great to know it’s all working now, Mayur.

Good day 😃

0reactions
borsemayur2commented, Apr 20, 2021

The issue was with module cache. I used reload: true in scripts.yaml to fetch all modules and its working now with v1.0.33. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python SDK release notes - Azure Machine Learning | Microsoft Learn
Azure Machine Learning SDK for Python v1.41.0. Breaking change warning. This breaking change comes from the June release of azureml-inference-server-http .
Read more >
Releases | NGINX Ingress Controller
After running the helm upgrade command, run kubectl apply -f deployments/helm-chart/crds to upgrade the CRDs. When upgrading using the manifests, make sure to ......
Read more >
History - AutoIt
Updated Obfuscator.exe v1.0.30.4 (Jos) - Fixed several reported bugs. *** Updated SciTEConfig v1.6.10.0 - updates for the included Abbrev manager and ...
Read more >
webfontloader - UNPKG
10, v1.5.14 (January 23, 2015) ... 58, * Update README explaining how to use custom fonts without a ... 127, * Change code...
Read more >
Bug listing with status RESOLVED with resolution FIXED as at ...
... Bug:137 - "Updated PyXML ebuild to 0.7" status:RESOLVED resolution:FIXED ... Bug:278 - "Requirements for Gentoo v1.0" status:RESOLVED resolution:FIXED ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found