Open DB-CL opened 4 years ago
Describe the bug I cannot get this library to work with typescript, it will always pop this error :
index.ts:1:19 - error TS2307: Cannot find module 'animejs/lib/anime.es.js'. 1 import anime from 'animejs/lib/anime.es.js'; ~~~~~~~~~~~~~~~~~~~~~~~~~ Found 1 error.
To Reproduce Steps to reproduce the behavior:
Create a file with import anime from 'animejs/lib/anime.es.js'; and a simple anime example inside
import anime from 'animejs/lib/anime.es.js';
And this error will pop.
Maybe I'm missing something but as far as I understand this example should work.
Just use import anime from 'animejs'.
import anime from 'animejs'
Take a look at the package.json: { ..., "module": "lib/anime.es.js", ...}, Webpack will import anime.es.js directly.
{ ..., "module": "lib/anime.es.js", ...}
Describe the bug I cannot get this library to work with typescript, it will always pop this error :
To Reproduce Steps to reproduce the behavior:
Create a file with
import anime from 'animejs/lib/anime.es.js';
and a simple anime example insideAnd this error will pop.
Maybe I'm missing something but as far as I understand this example should work.