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 problems with 0.14

See original GitHub issue

I was testing 0.14 with jaeger-client-node, and ran into the following issue. Our client is written in ES6 and transpiled to JS with babel.

https://github.com/uber/jaeger-client-node/blob/master/test/udp_sender.js

// L28
import opentracing from 'opentracing';
// L124
let childOfRef = new opentracing.Reference(opentracing.REFERENCE_CHILD_OF, childOfContext);

compiled to

var _opentracing = require('opentracing');
var _opentracing2 = _interopRequireDefault(_opentracing);
// ...
var childOfRef = new _opentracing2.default.Reference(_opentracing2.default.REFERENCE_CHILD_OF, childOfContext);

When running throws this error:

        var childOfRef = new _opentracing2.default.Reference(_opentracing2.def
                                                  ^
TypeError: Cannot read property 'Reference' of undefined

@felixfbecker - any idea?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
yurishkurocommented, Apr 24, 2017

+1, verified.

0reactions
felixfbeckercommented, Apr 25, 2017

If your services are all using ES5 then they should all continue working 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError when importing scipy.stats, undefined symbol ...
Installing from source solved the issue. First download the numpy and scipy tarballs. Then locate the BLAS and LAPACK *.so files on my ......
Read more >
[BUG]Project Tiny0.14.2 import error, 0.14.1 is fine - Unity Forum
Exception: Failed to update dependencies: TINY SHELL> E:\_JianguoCG\_Demo\New Unity Project (5)\Tiny\Dist SET PATH=C:\Program...
Read more >
SciPy 0.14.0 Release Notes — SciPy v1.9.3 Manual
Issues closed. Pull requests. SciPy 0.14.0 is the culmination of 8 months of hard work. It contains many new features, numerous bug-fixes, improved...
Read more >
Building for cloudflare? - Developers - DFINITY Forums
Also, this problem goes away if I use @dfinity/* : `0.14.0 version for all the deps. The second issue is when I import...
Read more >
7. Module — Python Notes (0.14.0) - Thomas-Cokelaer.info
In order to import a module, use the import keyword as follows: ... You can overcome this problem by using the reload/dreload functions...
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