Why not imported gsap?

I downloaded gsap:
npm install gsap

Then tried to import it to the project (script.js):
import { TimelineMax } from 'gsap';

BUT I got error in console:
Unexpected token '{'. import call expects exactly one argument.

What to do?
April 7th 20 at 10:39
0 answer

Find more questions by tags JavaScript