Skip to content

UI error probably link to a use of a deprecated version of ses #130

@benjaminsalon

Description

@benjaminsalon

Going through the video tutorial associated to the dapp, I manage to go through up until the launching of the dapp with yarn start:ui. The dapp is launched and open on localhost on port 5473 but the the browser displays a blank page and I get the following errors in the console:

Image

The details of the error is:

TypeError: Accessor not expected at intrinsics.%IteratorPrototype%.constructor    isAllowedProperty ses.js:2173
    visitProperties ses.js:2202
    isAllowedPropertyValue ses.js:2134
    isAllowedProperty ses.js:2170
    visitProperties ses.js:2202
    whitelistIntrinsics ses.js:2226
    repairIntrinsics ses.js:5277
    lockdown ses.js:5319
    <anonymous> installSesLockdown.ts:7
[ses.js:3662:18](http://localhost:5173/node_modules/.vite/deps/ses.js?v=9acd1c0f)    tameConsole ses.js:3662
    (Asynchrone : EventListener.handleEvent)
    tameConsole ses.js:3660
    repairIntrinsics ses.js:5265
    lockdown ses.js:5319
    <anonyme> installSesLockdown.ts:7
  • Do you have ideas where this could come from?

I personally looked at the ses (hardened javascript) dependency and it seems that we are using a deprecated version (0.18.8) according to the npm package webpage: "Please upgrade to ses@^1.1.0. Version 0.18.8 breaks in the presence of the new JavaScript iterator helpers."
I believe the issue might come from there. 

I then had a bit of struggle to completely remove the use of deprecated ses instance in dependencies and sub dependencies of the project. I tried to use resolutions but I am not sure this is working perfectly.  

  • Do you think this deprecated ses version could be the issue? If so, how to completely get rid of deprecated subdependencies use?

Metadata

Metadata

Assignees

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