Import Tweakpane with NPM but no bundler
See original GitHub issueI would like to import Tweakpane in my module, after having added it with NPM, but without using any bundler.
When I do:
import Tweakpane from "./node_modules/tweakpane/dist/tweakpane.js";
pane = new Tweakpane();
I get the following:
Uncaught SyntaxError: The requested module './node_modules/tweakpane/dist/tweakpane.js' does not provide an export named 'Tweakpane'
Is there a way to do so?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Import Tweakpane as a npm module - Stack Overflow
I'm very new to NPM, bundlers and ES6. I'm trying to use Tweakpane in a project, thus I did install it with NPM....
Read more >v-tweakpane - npm Package Health Analysis - Snyk
Ensure you're using the healthiest npm packages. Snyk scans all the packages in your projects for vulnerabilities and provides automated fix advice.
Read more >phaser-plugin-inspector - npm
Phaser 3 Inspector Plugin. View and change game properties, with Tweakpane. Demos. Games — early version of the plugin, ...
Read more >Unpopular Metrics about JS Bundlers | by Andrea Giammarchi
All bundlers produce valid code. You can test it via npm test after building all bundles via npm run all (but don't forget...
Read more >Tweakpane
Compact pane library for fine-tuning parameters and monitoring value changes. Parameters. color.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, will do. In the meantime, should I create an GitHub feature request issue to support ES module?
#209