question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Import Tweakpane with NPM but no bundler

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bolinocroustibatcommented, Mar 22, 2021

Thanks, will do. In the meantime, should I create an GitHub feature request issue to support ES module?

0reactions
cocoponcommented, Mar 22, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found