「moduleAttributes」の実験的な構文ソリューションはまだ見つかっていませんが、「classProperties」のような他のものについては多く見てきました
エラー:
./components/crud/CreateBlog.js:10:70
Syntax error: Support for the experimental syntax 'moduleAttributes' isn't currently enabled (10:71):
8 | import { getTags } from '../../actions/tag';
9 | import { createBlog } from '../../actions/blog';
> 10 | const ReactQuill = dynamic(() => import('react-quill', { ssr: false }));
| ^
11 | import '../../node_modules/react-quill/dist/quill.snow.css';
12 |
13 | const CreateBlog = ({ router }) => {
コンポーネント生成エラー:
import Link from 'next/link';
import { useState, useEffect } from 'react';
import Router from 'next/router';
import dynamic from 'next/dynamic';
import { withRouter } from 'next/router';
import { getCookie, isAuth } from '../../actions/auth';
import { getCategories } from '../../actions/category';
import { getTags } from '../../actions/tag';
import { createBlog } from '../../actions/blog';
const ReactQuill = dynamic(() => import('react-quill', { ssr: false }));
import '../../node_modules/react-quill/dist/quill.snow.css';
const CreateBlog = ({ router }) => {
return (
<div>
<h3>Create Blog Form</h3>
</div>
)
}
export default withRouter(CreateBlog);
エラー自体は、 { ssr: false } options オブジェクトが import() 呼び出しに渡されることによって生成されています。
これを解決する方法、またはなぜそれが起こっているのかについての考えや知識はありますか? ありがとうございました!