endo: App scaffolded with create-cosmos-app cannot call lockdown successfully
Describe the bug
As shown in https://github.com/agoric-labs/hardened-create-cosmos-app, when I try using create-cosmos-app to make a cosmos app (which runs on Next.js), I cannot successfully invoke lockdown and run the app.
Error Details:
See the README of the example repo for error details.
Steps to reproduce
- Clone https://github.com/agoric-labs/hardened-create-cosmos-app
yarn && yarn devto install deps and run locally- Load the url outputted by
yarn dev - Observe the error
Expected behavior
lockdown can be invoked in the top-level of the application without error.
Platform environment
- What OS are you using? MacOS 13.3.1 (22E261)
- What version of Node.js? v18.17.1
- Is there anything special/unusual about your platform? No
- What version of Endo are you using? βsesβ: β^1.1.0β
Additional context
Create-cosmos-app is a tool for scaffolding cosmos apps with Next.js. It would be beneficial to be able to use SES and Endo APIs in apps built using this tool. The error is perhaps more general to Next.js as a whole, but this tool is of particular interest.
Screenshots
See https://github.com/agoric-labs/hardened-create-cosmos-app
About this issue
- Original URL
- State: open
- Created 5 months ago
- Comments: 25 (17 by maintainers)
@tgrecojs you mentioned on the call you might be familiar with this issue