Skip to content

[Defect] Wrong Dependencies Handling #1379

@gagdiez

Description

@gagdiez

Most packages in the wallet-selector import directly from /lib - created during buid.

Moreover, they import from /lib without even respecting the ESM standard of adding the *.js extension during import

This creates problems when trying to import the modules on babel >5, and I assume the same would happen on other bundlers.

More importantly, having these types of imports makes it very hard to develop the wallet-selector itself, as you get errors on the imports until you actually build the package.

Goal

We need to change the wallet selector, so it depends on its own subpackages (i.e. replace all ./lib/... imports for @wallet-selector/...)

We did this in near-api-js, so we could follow a similar pattern here

Metadata

Metadata

Assignees

Labels

Emerging TechEmerging Tech flying formation at PagodabugSomething isn't working

Type

No type

Projects

Status

No Action Required 🙅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions