blocksuite icon indicating copy to clipboard operation
blocksuite copied to clipboard

Blocksuite Affine module issue for CheckBoxCheckSolidIcon

Open awaiz331 opened this issue 1 year ago • 11 comments

Hello, I am facing this module issue using @blocksuite/affine.

X [ERROR] No matching export in "node_modules/@blocksuite/icons/dist/lit.mjs" for import "CheckBoxCkeckSolidIcon"

node_modules/@blocksuite/affine-components/dist/context-menu/button.js:36:9:
  36 │ import { CheckBoxCkeckSolidIcon, CheckBoxUnIcon, DoneIcon, } from '@blocksuite/icons/lit';
     │          ~~~~~~~~~~~~~~~~~~~~~~
     ╵          CheckBoxCheckSolidIcon

Did you mean to import "CheckBoxCheckSolidIcon" instead?

node_modules/@blocksuite/icons/dist/lit.mjs:4592:24:
  4592 │   CheckBoxCheckSolid as CheckBoxCheckSolidIcon,
       ╵                         ~~~~~~~~~~~~~~~~~~~~~~

X [ERROR] No matching export in "node_modules/@blocksuite/icons/dist/lit.mjs" for import "CheckBoxCkeckSolidIcon"

node_modules/@blocksuite/data-view/dist/core/group-by/renderer/boolean-group.js:1:9:
  1 │ import { CheckBoxCkeckSolidIcon, CheckBoxUnIcon } from '@blocksuite/icons/lit';
    │          ~~~~~~~~~~~~~~~~~~~~~~
    ╵          CheckBoxCheckSolidIcon

Did you mean to import "CheckBoxCheckSolidIcon" instead?

node_modules/@blocksuite/icons/dist/lit.mjs:4592:24:
  4592 │   CheckBoxCheckSolid as CheckBoxCheckSolidIcon,
       ╵                         ~~~~~~~~~~~~~~~~~~~~~~

X [ERROR] No matching export in "node_modules/@blocksuite/icons/dist/lit.mjs" for import "CheckBoxCkeckSolidIcon"

node_modules/@blocksuite/data-view/dist/property-presets/checkbox/cell-renderer.js:36:9:
  36 │ import { CheckBoxCkeckSolidIcon, CheckBoxUnIcon } from '@blocksuite/icons/lit';
     │          ~~~~~~~~~~~~~~~~~~~~~~
     ╵          CheckBoxCheckSolidIcon

Did you mean to import "CheckBoxCheckSolidIcon" instead?

node_modules/@blocksuite/icons/dist/lit.mjs:4592:24:
  4592 │   CheckBoxCheckSolid as CheckBoxCheckSolidIcon,

awaiz331 avatar Jan 03 '25 23:01 awaiz331

Following

KehindeWilliams avatar Jan 04 '25 20:01 KehindeWilliams

Isn't this a typo?

CheckBoxC k eckSolidIcon => should be a h here instead?

KhangGEH avatar Jan 06 '25 08:01 KhangGEH

Following as well. It looks like a typo is the cause. Good spotting @KhangGEH. Your best bet @awaiz331 is to fork this repo, apply the fix and use that fork.

itsjustanks avatar Jan 09 '25 05:01 itsjustanks

what was changed on npm package with same number today? there are no changes in the repo...

UXDart avatar Feb 16 '25 17:02 UXDart

My solution:

$ cd node_modules/.pnpm
$ grep -r CheckBoxCkeckSolidIcon ./@blocksuite+*|awk -F\: '{print $1}'|sort|uniq|xargs sed -i "" -e 's/CheckBoxCkeckSolidIcon/CheckBoxCheckSolidIcon/g'

jonsen avatar Feb 19 '25 03:02 jonsen

My solution:

$ cd node_modules/.pnpm $ grep -r CheckBoxCkeckSolidIcon ./@blocksuite+*|awk -F: '{print $1}'|sort|uniq|xargs sed -i "" -e 's/CheckBoxCkeckSolidIcon/CheckBoxCheckSolidIcon/g'

Feel a bit hacky but if the authors refused to maintain/update this, what else can we do? ¯\(ツ)/¯

KhangGEH avatar Feb 19 '25 04:02 KhangGEH

thing is this is MPL which means you need make public your changes, is not that is not simple to fix, is that it seems this package can't be used anymore. better to move on. bad thing is that I would pay to use it... it is clear they don't want that also

UXDart avatar Feb 19 '25 09:02 UXDart

Provides a easier way to fix above issue, manually pnpm i @blocksuite/[email protected] would do. Seems that this typo is fixed on @blocksuite/[email protected], while the other packages didn't follow the changes.

yuzh2001 avatar Feb 27 '25 01:02 yuzh2001

Has this been fixed? I'm looking to use the library but running into this same issue

MicoBlanc avatar Apr 28 '25 08:04 MicoBlanc

Can you confirm if this project is still being actively maintained and supported? Tbh, examples link is broken and after first time to install I've got this error.

Partysun avatar May 14 '25 13:05 Partysun

Can you confirm if this project is still being actively maintained and supported? Tbh, examples link is broken and after first time to install I've got this error.

try something else would be a better choice. such as:

https://github.com/umodoc/editor

yuzh2001 avatar May 14 '25 13:05 yuzh2001