Skip to content

Issue importing bwip-js #1484

@jpike88

Description

@jpike88

Am testing this, this worked with other bundlers, but not this one:

see:

> server/src/components/core.ts:19:19: error: Could not resolve "bwip-js" (mark it as external to exclude it from the bundle)
    19 │ import bwipjs from 'bwip-js';
       ╵                    ~~~~~~~~~
   server/node_modules/bwip-js/package.json:7:13: note: The path "." is not currently exported by package "bwip-js"
     7 │   "exports": {
       ╵              ^
   server/node_modules/bwip-js/package.json:7:13: note: None of the conditions provided ("browser", "electron", "node") match any of the currently active conditions ("default", "import", "node")
     7 │   "exports": {
       ╵              ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions