Using stackblitz even if I create simplest demo for this library I get this error:
Cannot use import statement outside a module
I found related question from here, but it doesn't help:
- I can't edit
package.json
because I think they suggest to editpackage.json
of module which I imported - Another suggestion is to edit script tag, but on stackblitz environment, I can't find it either, it just shows the
index.html
file
here is demo:
import React from 'react';
import { FaBeer } from 'react-icons/fa';
class Question extends React.Component {
render() {
return (
<h3>
{' '}
Lets go for a <FaBeer />?{' '}
</h3>
);
}
}
Can someone help?