Skip to content
    Back to all Bounties

    Earn 1,800 ($18.00)

    Time Remainingdue 2 years ago
    Canceled

    Error on exporting a basic Typescript Class in Svelte App

    JohnCroxton
    JohnCroxton
    Posted 2 years ago

    Bounty Description

    Problem Description

    I'm running a Svelte app using Typescript to make a basic web game. When I try to export my Game class from its file to the .svelte main file I get a strange error in the console in Chrome from the file 'client-manifest.js:22': "Error: Invalid export 'Game' (valid exports are load, prerender, csr, ssr, trailingSlash, or anything with a '_' prefix) at validate (exports.js...)". I'm just using the starter Svelte app and feel like there's probably some package screwiness or really basic thing I'm messing up here.

    Acceptance Criteria

    In the ideal case, message me with your solution because you've seen this before or have a pretty good idea what it is. Otherwise, message me on Discord, I'll send over my files so you can get more details on the problem, and we go from there. As soon as I can export the Game class and import it to my .svelte file, I'll consider the bounty fulfilled.

    Would also be happy to chat about ways I could pay you for similar kinds of work in the future, if this goes well.