Blocksuite Affine module issue for CheckBoxCheckSolidIcon
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,
Following
Isn't this a typo?
CheckBoxC k eckSolidIcon => should be a h here instead?
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.
what was changed on npm package with same number today? there are no changes in the repo...
My solution:
$ cd node_modules/.pnpm
$ grep -r CheckBoxCkeckSolidIcon ./@blocksuite+*|awk -F\: '{print $1}'|sort|uniq|xargs sed -i "" -e 's/CheckBoxCkeckSolidIcon/CheckBoxCheckSolidIcon/g'
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? ¯\(ツ)/¯
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
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.
Has this been fixed? I'm looking to use the library but running into this same issue
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.
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