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]: Deprecation warnings galore upon opening Module Management #27

Open
1 task done
esheyw opened this issue Feb 17, 2023 · 1 comment
Open
1 task done

[Bug]: Deprecation warnings galore upon opening Module Management #27

esheyw opened this issue Feb 17, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@esheyw
Copy link

esheyw commented Feb 17, 2023

Expected Behavior

I'd really like to not spam my console every time I open MM

Current Behavior

Error: You are accessing BasePackage#data which is now deprecated in favor of referencing schema fields directly on the BasePackage instance.
Deprecated since Version 10
Backwards-compatible support will be removed in Version 12
    at logCompatibilityWarning (commons.js:1692:19)
    at get data [as data] (commons.js:11759:7)
    at SpreadsheetController.lookupCompatibility (SpreadsheetController.js:87:14)
    at index.js:51:44
    at NodeList.forEach (<anonymous>)
    at applyModuleManagementColors (index.js:49:82)

slightly more than one of these per module, seems like (in my world, 284 warnings for 281 installed modules)

Steps to Reproduce

  1. enable MCC
  2. open module management
  3. observe console

Context

No response

Version

1.4.1

Foundry VTT Version

10.281

Operating System

Windows 10

Browser / App

Chrome

Game System

pf2e 4.7.4

Modules Disabled

  • I can confirm that disabling all of my other modules doesn't fix this issue.
@esheyw esheyw added the bug Something isn't working label Feb 17, 2023
@arcanistzed
Copy link
Owner

arcanistzed commented Feb 17, 2023

You can disable compatibility warnings with CONFIG.compatibility.mode = CONST.COMPATIBILITY_MODES.SILENT;
I don't plan on doing this anytime soon, but I'm open to PRs after v11 is stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants