-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Circular dependencies in @substrate/smoldot-light #2613
Comments
Thank you @jacogr for this. I already started looking into it, so I hopefully will have a solution on these warnings soon |
For the |
Looking at the Rollup error link, i.e. https://rollupjs.org/guide/en/#error-this-is-undefined - I would most-probably place that squarely on the rollup config where this is used to ensure it specifies a sane context. (At least in my bundle configs this is something I'm going to be doing - this is not the only library I found with something like) |
Closing, since the circular dependency has been addressed. |
When including the package in a rollup build, it has some complaints. (Generally, apart from
madge
the rollup bundler is actually quite good at sniffing out these things). The full output from rollup is as follows -The
this
issue above seems to be caused by usingawait
in the code and the build step, have not dug to see "why".For the last issue in the log, the circular dep from
client <-> instance
, a solution could be -Error
intoerrors.ts
errors.ts
ininstance.ts
client.ts
A suggestion, the team here would have their own ideas and know best. I just want to shine light on the above log.
The text was updated successfully, but these errors were encountered: