Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read xml files and other data #9079

Open
Sharcoux opened this issue May 28, 2020 · 0 comments · May be fixed by admmasters/create-react-app#34 or joseroubert08/create-react-app#55
Open

Read xml files and other data #9079

Sharcoux opened this issue May 28, 2020 · 0 comments · May be fixed by admmasters/create-react-app#34 or joseroubert08/create-react-app#55

Comments

@Sharcoux
Copy link

Is your proposal related to a problem?

I don't understand why we still have to face "you may need an appropriate loader to handle this file type" kind of error. I'm trying to load an xml file from my assets, which doesn't sound like something completely crazy in a web environment, and I get this message.

I would just expect webpack to be configured to load the unknown files extensions as raw text, or at least common web extensions like xml, xhtml, and such.

Describe the solution you'd like

I think that we could just update the webpack configuration to load xml as raw text. This way at least we would be able to parse it.

Describe alternatives you've considered

The only alternative I know of right now would be to eject, which is not much of an alternative...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant