matrix-js-sdk no longer works in node #4287
Labels
A-Developer-Experience
O-Occasional
Affects or can be seen by some users regularly or most users rarely
S-Major
Severely degrades major functionality or product features, with no satisfactory workaround
T-Defect
#4284 describes a problem wherein matrix-js-sdk no longer works in a CommonJS environment, but actually it's worse than that: it doesn't work in an ES modules environment either.
If we apply the fix from #4285, and run in an esm environment, I get:
The problem appears to be that
index.js
contains:However, the file it actually wants is
./matrix.js
, and the nodejs ESM resolver doesn't know it needs to add the extension. Likewise for every link in the project :/The text was updated successfully, but these errors were encountered: