You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried directly using import from '@opentelemetry/api/build/esnext/index.js', but the bundler complains that the import is not valid according the package's export config.
Could not resolve import "@opentelemetry/api/build/esnext/index.js" using exports defined in node_modules/@opentelemetry/api/package.json.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The library I'm instrumenting runs on newer versions of node (and is bundled) so I would like to use the esnext version of
@opentelemetry/api
.Describe the solution you'd like
I would like to be able to write something like
import { trace } from '@opentelemetry/api/esnext'
to import trace from the
build/esnext
directory.I believe this could be accomplished by adjust the exports in package.json to something like this:
Describe alternatives you've considered
I've tried directly using
import from '@opentelemetry/api/build/esnext/index.js'
, but the bundler complains that the import is not valid according the package's export config.Could not resolve import "@opentelemetry/api/build/esnext/index.js" using exports defined in node_modules/@opentelemetry/api/package.json.
The text was updated successfully, but these errors were encountered: