Hi there,
I'm having trouble with the typings build. It's complaining a lot about Mithril. I'm not sure what's going on here. This is from the Github Action. I'm using Typescript.
But I see the same issue trying to run the typings build script locally
Error: ../vendor/flarum/core/js/dist-typings/@types/global.d.ts(24,28): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/@types/global.d.ts(59,25): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/@types/global.d.ts(60,36): error TS2307: Cannot find module 'dayjs' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/admin/components/AdminPage.d.ts(1,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/admin/components/ExtensionPage.d.ts(6,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/admin/components/PermissionGrid.d.ts(3,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/admin/utils/ExtensionData.d.ts(1,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/common/Application.d.ts(12,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/common/Component.d.ts(1,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/common/components/Alert.d.ts(2,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/common/components/Button.d.ts(1,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/common/components/Modal.d.ts(3,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/common/components/ModalManager.d.ts(2,10): error TS2305: Module '"../utils/focusTrap"' has no exported member 'FocusTrap'.
Error: ../vendor/flarum/core/js/dist-typings/common/components/ModalManager.d.ts(4,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/common/components/Page.d.ts(1,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/common/models/Discussion.d.ts(3,21): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/common/models/User.d.ts(4,21): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/common/resolvers/DefaultResolver.d.ts(1,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/common/states/AlertManagerState.d.ts(1,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/common/utils/Drawer.d.ts(10,38): error TS2694: Namespace '"/home/runner/work/featured-projects/featured-projects/vendor/flarum/core/js/dist-typings/common/utils/focusTrap"' has no exported member 'FocusTrap'.
Error: ../vendor/flarum/core/js/dist-typings/common/utils/RequestError.d.ts(1,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/common/utils/Stream.d.ts(1,20): error TS2307: Cannot find module 'mithril/stream' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/common/utils/focusTrap.d.ts(1,53): error TS2307: Cannot find module 'focus-trap' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/common/utils/focusTrap.d.ts(19,15): error TS2307: Cannot find module 'focus-trap' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/forum/components/ComposerBody.d.ts(40,36): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/forum/components/DiscussionPage.d.ts(1,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/forum/components/IndexPage.d.ts(3,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/forum/components/Notification.d.ts(3,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.
Error: ../vendor/flarum/core/js/dist-typings/forum/components/Post.d.ts(5,26): error TS2307: Cannot find module 'mithril' or its corresponding type declarations.