mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-04-25 13:46:02 +03:00
[GH-ISSUE #3355] CloudBeaver TypeScript Path Resolution Problem #1238
Labels
No labels
AS
can't reproduce
can't reproduce
deployment
development
documentation
duplicate
duplicate
ee
enhancement
external
new driver
performance
pull-request
third party issue
wait for response
wait for review
wontfix
x:Oracle
x:cassandra
x:clickhouse
x:db2
x:duckdb
x:greenplum
x:h2
x:h2gis
x:hana
x:hive
x:intersystems
x:kyuubi
x:maria
x:mongo
x:mysql
x:postgresql
x:presto
x:sql server
x:sqlite
x:teradata
x:trino
xf:accessibility
xf:administration
xf:ai
xf:authentication
xf:aws
xf:commit-mode
xf:connection
xf:dark theme
xf:data editor
xf:datatransfer
xf:dba
xf:driver management
xf:erd
xf:filters
xf:i18n
xf:i18n
xf:installer
xf:json
xf:kerberos
xf:ldap
xf:local config
xf:log viewer
xf:metadata
xf:metadata editor
xf:navigator
xf:okta
xf:query manager
xf:resource manager
xf:scripts
xf:sql editor
xf:tasks
xf:ui/uix
xo: Firefox
xo:eclipse
xo:internet explorer
xo:macos
xp:major
xrn:internal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudbeaver#1238
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vivianma83 on GitHub (Apr 2, 2025).
Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/3355
Originally assigned to: @SychevAndrey on GitHub.
Please, describe your question in details.
I'm trying to set up the CloudBeaver project in VS Code for local development. I installed the dependencies using
yarn install, and opened the root directory. However, in thewebapppackage, all imports like@cloudbeaver/core-app-settingsshow red squiggly lines in VS Code (cannot find module).I suspect it's related to the monorepo structure and TypeScript path aliases. I tried adding a
tsconfig.jsonin the root directory like this:But the issue still persists. Could you please clarify:
Is there an official tsconfig.json setup that works with VS Code?
How do you recommend setting up the editor for local development and type resolution?
@LonwoLonwo commented on GitHub (Apr 3, 2025):
Thanks for the report. We will look at it.
@SychevAndrey commented on GitHub (Apr 7, 2025):
HI @vivianma83 !
The issue is related to how VSCode handles package references in projects using Yarn PnP (Plug'n'Play).
How to fix:
Install the official ZipFS extension for Yarn PnP support:
vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-sandbox/workbench/workbench.html
Configure TypeScript to work with PnP:
yarn dlx @yarnpkg/sdks vscodeThis command will create the correct settings for TypeScript in VSCode with PnP support.
Switch TypeScript version:
After installing extensions, press
Ctrl+Shift+P(orCmd+Shift+Pon Mac)Type "TypeScript: Select TypeScript Version"
Select "Use Workspace Version"
Check VS Code settings: Your settings.json should have settings like:
"typescript.tsdk": "webapp/.yarn/sdks/typescript/lib",Restart VS Code after all changes.
Please let me know if this solution worked for you.
@SychevAndrey commented on GitHub (Apr 7, 2025):
We plan to add these files to git in a future release, so you won't have to set them up manually.
@LonwoLonwo commented on GitHub (Apr 7, 2025):
Changes are available in devel already.