I am using react-codemirror2. I used npx create-react-app appname
to create my app.
But when I try to run the development server it gives me the following error -
./node_modules/codemirror/mode/rpm/changes/index.html 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
> <!doctype html>
|
| <title>CodeMirror: RPM changes mode</title>
One solution suggested to change the modulesDirectories. I tried doing so using npm run eject
. But wasn't successful at doing it.
Please help me with the same
The doctype declaration is incorrect, it should have been:
Notice DOCTYPE should be in caps.