cstadther / adventure-import-export

A module for Foundy VTT for packaging and installing adventures.
MIT License
15 stars 7 forks source link

Fail to create new compendium #144

Open ratanakkim opened 3 years ago

ratanakkim commented 3 years ago

When trying to import new compendium to a game the module give this error : chrome_NlQc4rbwjz

When trying to import a sizeable compendium this error was given: chrome_0E13N85QQH

zink-chimaera commented 3 years ago

I can confirm this. I've created a scene compendium and exported it (without any error). After importing I get the same error:

common.js:439 undefined |  Error importing file Death House.fvttadv TypeError: Compendium.create is not a function
    at Function.getCompendiumPack (common.js:170)
    at adventure-import.js:499
    at async Function.asyncForEach (common.js:154)
    at async AdventureModuleImport._importCompendium (adventure-import.js:495)
    at async AdventureModuleImport._dialogButton (adventure-import.js:158) Error
    at Object.error (https://vtt.tuxdance.com/modules/adventure-import-export/src/common.js:439:53)
    at AdventureModuleImport._dialogButton (https://vtt.tuxdance.com/modules/adventure-import-export/src/adventure-import.js:463:24)

Have you found anything that can be done from a user's perspective work around this issue @ratanakkim ?

zink-chimaera commented 3 years ago

For futher information: I was testing on D&D 5e with Foundry 0.8.9

patrickporto commented 3 years ago

Compendium.create is deprecated. An alternative is CompendiumCollection.createCompendium