You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot find module '@blocknote/react' warning is VS Code #804
Therefore, I can't use VS Code to quickly jump to the corresponding code snippets. I want to contribute to the BlockNote codebase, and I believe it can greatly enhance my efficiency if I can quickly navigate between sections of code.
I tried to add the following tsconfig.json to the root, but didn't work.
I think to solve your issue, also change __ADD_FOR_LOCAL_DEV_references into references in the example's tsconfig. Let me know if it works after that
This exactly solved the problem.
After running npm run build, the ES Lint warnings disappeared in VS Code. However, when I press ALT + Click to jump to the corresponding code, it takes me to the type definition.
Then when I change the __ADD_FOR_LOCAL_DEV_references to reference, pressing ALT + Click can lead me to the real code part in packages folder.
Thank you!
I'm new to Frontend. Can I ask why the ES Lint warning will disappear after I run npm run build?
I'm new to Frontend. Can I ask why the ES Lint warning will disappear after I run npm run build?
It could be (a) that it wasn't 100% necessary and it was resolved with the tsconfig fix. it could (b) also be because the build command ran a first compilation step necessary for the lint errors to resolve
Activity
YousefED commentedon Jun 5, 2024
Make sure you also run
npm run buildI think to solve your issue, also change
__ADD_FOR_LOCAL_DEV_referencesintoreferencesin the example's tsconfig. Let me know if it works after thatmengxi-ream commentedon Jun 6, 2024
This exactly solved the problem.
After running
npm run build, the ES Lint warnings disappeared in VS Code. However, when I press ALT + Click to jump to the corresponding code, it takes me to the type definition.Then when I change the
__ADD_FOR_LOCAL_DEV_referencestoreference, pressing ALT + Click can lead me to the real code part inpackagesfolder.Thank you!
I'm new to Frontend. Can I ask why the ES Lint warning will disappear after I run
npm run build?mengxi-ream commentedon Jun 6, 2024
Btw, do you think it's good to add these instructions to
CONTRIBUTION.mdfor developers? I can help to update that document.YousefED commentedon Jun 6, 2024
As this is specific to the examples, maybe add this info about
__ADD_FOR_LOCAL_DEV_referencesto https://github.com/TypeCellOS/BlockNote/blob/main/examples/README.mdIt could be (a) that it wasn't 100% necessary and it was resolved with the tsconfig fix. it could (b) also be because the build command ran a first compilation step necessary for the lint errors to resolve