Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

"assert is not defined" in Electron #852

Closed
@negamaxi

Description

@negamaxi

Simple webpack bundle with this two lines:

import IPFS from 'ipfs'
const ipfs = new IPFS()

...throws this in Electron app.
error1
Same code works well in Chrome tab. First I assumed something wrong with webpack bundle, but cdn bundle of ipfs-iiif-db embeded with <script> tag also refuses to work in Electron.

webpack 2.3.3 + webpack dev server 2.4.2 + electron 1.6.2 + ipfs 0.23.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions