Closed takker99 closed 2 months ago
The ESM output of this package is wrong and doesn't work in Node. Deno is a bit more lenient about loading files that appear to be ESM, but if I tell node that this folder is supposed to be ESM then I get the same error that appears in Deno when importing this package from ESM Node:
% node index.mjs
node:internal/modules/esm/resolve:260
throw new ERR_MODULE_NOT_FOUND(
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/.../node_modules/@progfay/scrapbox-parser/esm/parse' imported from /.../node_modules/@progfay/scrapbox-parser/esm/index.js
This is because it needs to import parse.js
instead of parse
when importing an ES module in Node.
https://www.npmjs.com/package/@progfay/scrapbox-parser
According to https://github.com/denoland/deno/issues/16658#issuecomment-1316825629, this bug already seemed to be fixed. However, I got the above error so it seems not to be fixed completely.