tweakpane / use-tweaks

🎛️ Tweak React components with Tweakpane
https://codesandbox.io/s/use-tweaks-example-58e02
MIT License
767 stars 23 forks source link

i can't initiate tweakpane #54

Closed Vince66000 closed 12 months ago

Vince66000 commented 1 year ago

Hi,

i'm encoutring an issue when i install Tweakpane and try to use it :

const tweakpane = require('tweakpane');

`const createPane = () => { const pane = new tweakpane.Pane(); }

createPane();`

i have this error :

C:\wamp64\www\cours code créatif\skteches\node_modules\tweakpane\dist\tweakpane.js:7791 export { BladeApi, ButtonApi, FolderApi, ListBladeApi, ListInputBindingApi, Pane, Semver, SeparatorBladeApi, SliderBladeApi, SliderInputBindingApi, TabApi, TabPageApi, TextBladeApi, TpChangeEvent, VERSION }; ^ ParseError: 'import' and 'export' may appear only with 'sourceType: module'

anybody can help me please ?

cocopon commented 1 year ago

Here is the repository for use-tweaks, not tweakpane. Please report it to the right place: https://github.com/cocopon/tweakpane/issues

Anyway, additional information is needed to investigate the issue.