fix usage of global object in browser environment / Angular no longer supporting it #1088
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#1088
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Browser code should not rely on things that are not available in browser environments. Otherwise it throws error global is undefined.
see angular-cli issue
This hasn't been an issue in angular 2/4/5. Can you share a sample project using a beta version of angular 6?
Sure, you can check in this link
Just clone and run ng serve and you will see the following error in the console:
Just adding some information: Angular v6 was released today.
We're going to cut a new release today. Based on some tests against your sample project, it should be sufficient to add a global typeof guard:
Yes, that will work! Thanks for the quick reply.