Hi all,
When I try typing the following, an error comes up:
import ‘codemirror/lib/codemirror.css’
import ‘codemirror/theme/material.css’
import ‘codemirror/mode/xml/xml’
import ‘codemirror/mode/javascript/javascript’
import ‘codemirror/mode/css/css’
This is what the error says:
ERROR in ./src/components/Editor.js 6:0-39
Module not found: Error: Package path ./lib/codemirror.css is not exported from package /Users/user/code-editor/node_modules/codemirror (see exports field in /Users/user/code-editor/node_modules/codemirror/package.json)
ERROR in ./src/components/Editor.js 7:0-39
Module not found: Error: Package path ./theme/material.css is not exported from package /Users/user/code-editor/node_modules/codemirror (see exports field in /Users/user/code-editor/node_modules/codemirror/package.json)
ERROR in ./src/components/Editor.js 8:0-33
Module not found: Error: Package path ./mode/xml/xml is not exported from package /Users/user/code-editor/node_modules/codemirror (see exports field in /Users/user/code-editor/node_modules/codemirror/package.json)
ERROR in ./src/components/Editor.js 9:0-47
Module not found: Error: Package path ./mode/javascript/javascript is not exported from package /Users/user/code-editor/node_modules/codemirror (see exports field in /Users/user/code-editor/node_modules/codemirror/package.json)
ERROR in ./src/components/Editor.js 10:0-33
Module not found: Error: Package path ./mode/css/css is not exported from package /Users/user/code-editor/node_modules/codemirror (see exports field in /Users/user/code-editor/node_modules/codemirror/package.json)
Can someone help?