dat.gui.image icon indicating copy to clipboard operation
dat.gui.image copied to clipboard

Does not work with NPM in a JS project

Open torchesburn opened this issue 3 years ago • 4 comments

I add this to the project as a dev dependency and does not work when i try to import it gives an error

torchesburn avatar Mar 19 '21 13:03 torchesburn

Hi @yaserOSource can you give me more information about what is not working exactly? Did you try to import it as described in the README? Do you have dat.gui installed?

import dat from 'dat.gui';

// The magic here!
import datGuiImage from 'dat.gui.image';
datGuiImage(dat);

Jeremboo avatar Mar 22 '21 14:03 Jeremboo

Yes ofc I added this after i was already using dat.gui.

And i copied and pasted it exactly.

torchesburn avatar Mar 22 '21 15:03 torchesburn

Is there a standalone verison?

torchesburn avatar Mar 22 '21 15:03 torchesburn

Unfortunately not you need to install dat.gui too. What is your dat.gui version?

And are you using npm to install your packages? Since I'm always working with npm I don't know if that works out of this box.

Jeremboo avatar Mar 25 '21 09:03 Jeremboo