when we import Editor with this line of code.
Code: Select all
import {Editor} from 'primereact/components/editor/Editor';
Failed to compile
./node_modules/primereact/components/editor/Editor.js
Module parse failed: Unexpected token (10:24)
You may need an appropriate loader to handle this file type.
| export class Editor extends Component {
|
| static defaultProps = {
| id: null,
| value: null,