Hi again, yes i used to play with gsap free in Codepen and i finally got a license at my company
So now i want to include it in my webpacker
Rails + Webpacker for bundle.
The Point.
Makes more sense for me then to put the gsap folder into my build system ( never in node_modules, because i used to remove his content to run yarn install again in case some package miss a dependency )
If i use NPM gsap free packages
import 'gsap/TweenLite'; //OK import
import 'gsap/CSSPlugin'; //OK import
import 'gsap/ScrollToPlugin'; //OK import
But if i store gsap folder in my source folder
import '../js/gsap/uncompressed/TweenLite'; //OK import
import '../js/gsap/uncompressed/plugins/CSSPlugin'; // retun an error
import '../js/gsap/uncompressed/plugins/ScrollToPlugin'; // retun an error
Failed to compile.
Module not found: Error can't resolve 'TweenLite'
All the files into the plugin folder return me an error.
Same if i try this
import TweenLite from '../js/gsap/uncompressed/TweenLite'; //OK import
import '../js/gsap/uncompressed/plugins/CSSPlugin'; // retun an error
import '../js/gsap/uncompressed/plugins/ScrollToPlugin'; // retun an error
At the begining i thought was a webpacker issue, but now seems to me to be the files. The main differences is that in the first case i didn't use the files stored into the plugins folder. But in the second i don't have those files.
Any solution here would be much appreciated