canjs / can-define-backup

Backup and restore a DefineMap state
https://canjs.com/doc/can-define-backup.html
MIT License
3 stars 3 forks source link

Error when trying to use can-define-backup with CanJS 4 #10

Closed rob4acre closed 6 years ago

rob4acre commented 6 years ago

I get the following error message when trying to use can-define-backup with CanJS 4

The current version in npm is 0.0.1. I was getting an error about an incompatibility

Error: You can't have two versions of can-dom-data-state, check your dependencies I only get this error if I import can-define-backup

Thanks in advance for taking a look.

phillipskevin commented 6 years ago

can-define-backup@1.0.0-pre.1 is compatible with CanJS 4.0. This can be installed with

npm install can-define-backup@pre

We may still include https://github.com/canjs/can-define-backup/issues/8 before making a final 1.0 version of can-define-backup, so there may be breaking changes if anyone starts using the pre-release.

I'm going to try to update the PR for the mixin proposal now to see if it is relatively easy to get in. If it is, I will release it soon.