Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Suggestion for typescript/podcast-player #78

@kubycsolutions

Description

@kubycsolutions

Suggested change, since what's there (commented out here) wasn't being accepted for me:

// const episodesJSON = require('./episodes.json');
import * as episodesJSON from './episodes.json'

The alternative seems to be to turn esModuleInterop on in tsconfig.json, and I'd worry about that having other effects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions