Skip to content

global is not defined #1434

@GongJS

Description

@GongJS

Bug report

ReferenceError: global is not defined

Version

0.14.0

Steps to reproduce

so i install the modules - file-saver,but when i import it in my project, the chrome throw the error:
global is not defined

i import it like this:
import FileSaver from 'file-saver'

image

What is expected?

i hope i can use the file-saver normaly;

What is actually happening?

it doesn't work

Other relevant information

  • Your OS: mac
  • Node.js version: 10.0
  • Browser version:
  • Is this a global or local install?
    yarn add file-saver
  • Which package manager did you use for the install?
    yarn
  • Does this issue occur when all plugins are disabled?
    no

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