Skip to content

Troubles with new import method in the browser #48

@jaunt

Description

@jaunt

I've been using/loving roarr for quite a while using versions up to and including 4.x.

After upgrading to 7.0.1, I can't get the example code to work:

For example, this is how I'm importing into my vue-cli webpack 4 project:

import { Roarr as log } from "roarr";

const Logger = log.child({
  application: "webapp",
  version: process.env.VERSION,
});

At run time I get:

Uncaught TypeError: roarr__WEBPACK_IMPORTED_MODULE_2__.Roarr is undefined

And of course log ends up undefined. Ideas? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions