Skip to content

TypeError: Cannot read property 'constructor' of undefined #8

Description

@rpong

Since this change has been implemented: meteor/meteor#10053

meteorhacks:meteorx is throwing the following error during build:

TypeError: Cannot read property 'constructor' of undefined
    at exposeSessionCollectionView (packages/meteorhacks_meteorx.js:73:62)
    at exposeLivedata (packages/meteorhacks_meteorx.js:32:5)
    at packages/meteorhacks_meteorx.js:176:1
    at packages/meteorhacks_meteorx.js:201:4
    at packages/meteorhacks_meteorx.js:209:3
    at /xxx/.meteor/local/build/programs/server/boot.js:411:36
    at Array.forEach (<anonymous>)
    at /xxx/.meteor/local/build/programs/server/boot.js:220:19
    at /xxx/.meteor/local/build/programs/server/boot.js:471:5
    at Function.run (/xxx/.meteor/local/build/programs/server/profile.js:510:12)
    at /xxx/.meteor/local/build/programs/server/boot.js:470:11
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.

The fix is to change session._namedSubs.[subId]; to session._namedSubs.has(subId); and documentView.documents.[id].constructor; to documentView.documents.has(id).constructor; in /lib/livedata.js for exposeSubscription() and exposeSessionCollectionView()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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