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.

Usage with webpack

See original GitHub issue

Hello!

I am trying to use this library with webpack (ES6 import) however, something seems to be missing as the file imported is the main one specified in package.json which seems to not have all the needed dependencies.

Is any work on progress about this? Something I might help on?

Thank you!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
botraunakcommented, Mar 21, 2018

@GabrielGil Thanks for the reply. npm was fetching 2.0.4 for unknown reasons. Related: https://github.com/dorukeker/gyronorm.js/issues/40#issuecomment-308603450

0reactions
GabrielGilcommented, Mar 21, 2018

Yes, I can confirm at version 2.0.6 the imports work just fine:

// ES6+
import Gyronorm from 'gyronorm';
// Typescript
let Gyronorm = require('gyronorm');
let gs = new Gyronorm();
console.log('Gyronorm instance', gs);
Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started
Webpack is used to compile JavaScript modules. Once installed, you can interact with webpack either from its CLI or API.
Read more >
An intro to Webpack: what it is and how to use it
In brief, Webpack goes through your package and creates what it calls a dependency graph which consists of various modules which your webapp ......
Read more >
Getting Started With Webpack
webpack is a highly extensible and configurable static module bundler for JavaScript applications. With its extensible nature, you can plug in ...
Read more >
Introduction to Webpack
Webpack is a tool that lets you compile JavaScript modules, also known as module bundler. Given a large number of files, it generates...
Read more >
Webpack: When To Use And Why - Andy Ray's Blog
Webpack is a build tool that puts all of your assets, including Javascript, images, fonts, and CSS, in a dependency graph. Webpack lets...
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