Skip to content

Can't import file with craco in a React app #47

Description

@JulesLecuir

Hi guys,

I am having issues using yaml-loader with craco. Basically, even with a proper Webpack config, yaml-loader doesn't actually load the file. All I am getting is the file path of this file, not its content.

I have also submitted a question on StackOverflow, I thought alo about submitting an issue here so you're aware of the problem (and I may have forgotten something in my config as well).

Here's the link, that also contains a reproductible CodeSandbox example: https://stackoverflow.com/questions/74126812/import-a-yaml-file-in-react-with-craco-and-yaml-loader

Thanks in advance for your help :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions