search

Home  >  Q&A  >  body text

I get an error while processing codemirror even though it is in my package.json

import "codemirror/lib/codemirror.css";
import "codemirror/theme/material.css";
import 'codemirror/mode/xml/xml.js'
import 'codemirror/mode/javascript/javascript.js'
import 'codemirror/mode/css/css.js'

Module not found: error: package path ./lib/codemirror.css is not exported from package I get the same error for all imports.

I just want to get the output of the editor component.

P粉662089521P粉662089521306 days ago484

reply all(1)I'll reply

  • P粉008829791

    P粉0088297912024-01-30 09:23:04

    I think there are some problems with the code image file. Probably because they don't export anything directly, so these import statements can't extract anything from these addresses. If anyone finds a way to import these functions, please suggest any other way to import these functions from codemirror

    reply
    0
  • Cancelreply