代码:
import React from 'react'
import 'codemirror/lib/codemirror.css';
export default function Editor() {
return (
<div>Editor</div>
)
}
错误:
Module not found: Error: Can't resolve 'codemirror/lib/codemirror.css'
请提供此错误的解决方案..
FIrst,run:- npm config set legacy-peer-deps true,
then try to run:- npm i codemirror@version5
It work Smoothly!!!!