How to Replace Strapi's Default WYSIWYG Editor with TinyMCE Editor

Hi, I’m trying this tutorial but I’m encountering an error when I try to start Strapi after building the admin:

[2021-11-02T14:22:16.995Z] error /Users/francesco/projects/cpo-strapi/components/MediaLib/index.js:1
import React, { useEffect, useState } from "react";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at wrapSafe (internal/modules/cjs/loader.js:1001:16)

any idea on how to fix it? thanks in advance
Francesco