Skip to content

OrmUtils in 0.2.25 breaks browser builds due to node import #6142

@chriswep

Description

@chriswep

Issue type:

[ ] question
[x] bug report
[ ] feature request
[ ] documentation issue
TypeORM version:

[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)

Steps to reproduce or a small repository showing the problem:

using the .save() method (sometimes?) produces the error TypeError: Right hand side of instanceof is not an object which is triggered by OrmUtils.compare2Objects. Since 50a0641 this uses the node-import url which is not available on browser targets. I guess this needs to be removed or polyfilled in browser/utils/Ormutils.

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